Replies: 1 comment
-
|
Hi @LDM-cyber! I'm Dosu and I’m helping the dify team. The login issue in your split front-end/back-end setup is likely due to cookie domain configuration and how environment variables are handled during build vs runtime. For cross-subdomain authentication, you need to set Common mistakes include using IP addresses instead of domains, setting environment variables only at runtime, or not restarting services after changes. Also, check that your reverse proxy or CDN isn’t stripping cookies or headers, and that HTTPS is properly configured across all subdomains. If login still fails, gather browser and backend logs and confirm that the environment variables are present during the frontend build process. For more details, see the official guidance and recent fixes:
To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
In a front-end and back-end service separation scenario, the front-end page runs on my computer, while the back-end runs on the server. I set "NEXT_PUBLIC_COOKIE_DOMAIN=1" as described in the documentation, but why can't I still log in to the front-end?

2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions