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

net/http: add the SameSite cookie attribute #24390

Closed
agnivade opened this issue Mar 14, 2018 · 1 comment
Closed

net/http: add the SameSite cookie attribute #24390

agnivade opened this issue Mar 14, 2018 · 1 comment

Comments

@agnivade
Copy link
Contributor

SameSite prevents the browser from sending this cookie along with cross-site requests. The main goal is mitigate the risk of cross-origin information leakage. It also provides some protection against cross-site request forgery attacks. Possible values for the flag are lax or strict.

RFC - https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00

The RFC does say that Updates: 6265 (if approved). I'm not sure about the policy if we follow. Do we not make changes until 6265 gets updated ?

OAWSP - https://www.owasp.org/index.php/SameSite

As of November 2017 the SameSite attribute is implemented in Chrome, Firefox, and Opera.

caniuse.com still shows a bit of red in places. But I guess it will be a good addition to applications which are security focused.

@agnivade
Copy link
Contributor Author

Oops. Duplicate. Closing.

@golang golang locked and limited conversation to collaborators Mar 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants