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

Set the cookie SameSite directive to Strict #272

Open
1 task
sandbergja opened this issue Jan 11, 2024 · 0 comments
Open
1 task

Set the cookie SameSite directive to Strict #272

sandbergja opened this issue Jan 11, 2024 · 0 comments

Comments

@sandbergja
Copy link
Member

Success criteria

  • Lockers's Set-Cookie response header includes "SameSite=Strict"

Rationale

This reduces the number of scenarios in which the cookie will be sent, providing better CSRF protection and reducing the size of the Cookies header in some cases. Part of pulibrary/dacs_handbook#154

Example PR

pulibrary/orangelight#3932

Tradeoff

If a user logs into Lockers, navigates to a non-Princeton Web site (e.g. Gmail), and then clicks a link from that Web site back to Lockers, they will need to log in to Lockers again.

Further reading

I found this from Mozilla, this from Portswigger, and this blog post from Andrew Lock to be helpful in understanding this topic.

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

No branches or pull requests

1 participant