openpanel
openpanel copied to clipboard
Login cookies rejected on .com.tr domains, missing multi-part TLD supportRetry
Request: Login cookies are rejected on .com.tr domains authentication cannot complete when self-hosted
Summary
When deploying OpenPanel on a .com.tr domain (for example: abc.com.tr) using Coolify, the login API succeeds and returns a success response, but the browser rejects the authentication cookie because the generated cookie domain is invalid.
As a result:
- Login request succeeds
- UI displays "Successfully signed in"
- Browser blocks the
Set-Cookieheader - User session is not created
- User cannot proceed to the dashboard
Environment
- Deployment method: Coolify (Docker Compose auto-managed)
- Reverse proxy: Traefik (Coolify-managed)
- Domain example:
abc.com.tr - HTTPS: Let's Encrypt
Root Cause
The parseCookieDomain() function does not recognize .com.tr as a multi-part TLD, so it incorrectly sets the cookie domain to com.tr, which browsers reject.
Request
Could you please add support for .tr, .nl, and .ch domain structures in the MULTI_PART_TLDS list?
Thanks!
Ill add these issues and hopefully release new self-hosting images next week!