-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Incorrect cookie scope #467
Comments
This is a known issue - I will be taking care of this ASAP in the next 2 days. I will keep you updated. Thanks for the understanding 🙏 |
No worries. Thanks for the quick response (wasn't expecting that), and thanks for an awesome project. Let me know when its ready for testing and I'll be happy to try and help out. |
@metalblue, go ahead and pull the |
@seanmorley15 I just pulled the beta tag down and it fixed my login loop. |
@seanmorley15 I've just pulled the beta image too and it works. However, having reviewed whats happening (and I appreciate it goes against my earlier comment), I'm not sure if this should be marked as complete. The scope is now being set to |
Describe the bug
When using an internal domain of the form
MyApp.MySubdomain.MyDomain.co.uk
the cookie scope gets set toco.uk
, which the browser (Chrome) refuses to accept. This appears to prevent users from logging in.I believe the offending code is in the following files:
frontend/src/routes/login/+page.server.ts
and functionhandleSuccessfulLogin
.frontend/src/routes/+page.server.ts
To Reproduce
MyApp.MySubdomain.MyDomain.co.uk
Expected behavior
I would expect the cookie scope to be set to
MyDomain.co.uk
, orMySubdomain.MyDomain.co.uk
or evenMyApp.MyDomain.co.uk
. I suspect this will require a new environment variable given the difficulty of automatically detecting this.Screenshots
Console output from
docker logs -f adventurelog-frontend
The text was updated successfully, but these errors were encountered: