Skip to content

CSRF Support with SameSite cookie #9843

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

Closed
wants to merge 4 commits into from

Conversation

codecracker2014
Copy link
Contributor

Fix for #7537
I've added CsrfTokenRepository SameSiteCookieCsrfTokenRepository that persists the CSRF token in a cookie named "XSRF-TOKEN" which has sameSite attribute and reads the same cookie. SameSite prevents the browser from sending this cookie along with cross-site requests.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 1, 2021
@jzheaux jzheaux added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 1, 2021
@rwinch
Copy link
Member

rwinch commented Nov 17, 2021

Closing as won't fix for the reasons described in #7537 (comment)

@rwinch rwinch closed this Nov 17, 2021
@rwinch rwinch added the status: invalid An issue that we don't feel is valid label Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue status: invalid An issue that we don't feel is valid type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants