Skip to content
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

Issue in Chrome console: Mark cross-site cookies as Secure to allow setting them in cross-site contexts #82

Closed
Devalo opened this issue Aug 5, 2020 · 2 comments

Comments

@Devalo
Copy link
Contributor

Devalo commented Aug 5, 2020

The warning reads:
Cookies marked with SameSite=None must also be marked with Secure to allow setting them in a cross-site context. This behavior protects user data from being sent over an insecure connection.

Resolve this issue by updating the attributes of the cookie:
Specify SameSite=None and Secure if the cookie is intended to be set in cross-site contexts. Note that only cookies sent over HTTPS may use the Secure attribute.
Specify SameSite=Strict or SameSite=Lax if the cookie should not be set by cross-site requests

@Devalo
Copy link
Contributor Author

Devalo commented Aug 5, 2020

It may look like this only happens on a local dev server. When I tried it on a prod server over https, the warning seems to go away

@Mastermindzh
Copy link
Owner

That is correct. As the warning suggest the combination can only be used on TLS secured connections.
Please refer to either pr 68 or issue 67 for more details :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants