-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
relationship between sameSite and the secure option? #268
Comments
I don't understand what's the ask here. Can you clarify? |
I don't understand why the sameSite value is set here, it doesn't make any sense. I think it should be deleted |
What problem do you encounter when it's set to Lax should be the minimum default but I agree that it could be applied more consistently Maybe |
By setting the value to strict we actually obtain the Lax value if we are not in a secure context, but there is no meaningful relationship between secure and samesite. In any case this parameter is examined later, when serializing the cookie, as you prefer :) |
Prerequisites
Issue
From my understanding there is no relationship between the secure option and the sameSite option that can be applied to the cookie. This code makes it impossible to configure sameSite to 'strict' for non https connections (a little annoying for developments).
Additionally the sameSite option is examined during serialization
The text was updated successfully, but these errors were encountered: