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

feat(dbAuth): Lax SameSite cookie policy #11889

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Jan 9, 2025

Setting the SameSite cookie policy to Lax allows users to be immediately authenticated when arriving from external domains.

This is also what Djang and Ruby on Rails has by default.

Here are the Django docs saying it's Lax by default:
https://docs.djangoproject.com/en/5.1/ref/settings/#session-cookie-samesite
Here's the Rails test that asserts that it's Lax by default:
https://github.com/rails/rails/blob/da32425a0864f6da7bdd2a8d3a43027fbfb2a504/railties/test/application/configuration_test.rb#L3352

@Tobbe Tobbe added the release:feature This PR introduces a new feature label Jan 9, 2025
@Tobbe Tobbe added this to the next-release milestone Jan 9, 2025
@Tobbe Tobbe merged commit 0498299 into redwoodjs:main Jan 9, 2025
46 of 50 checks passed
@Tobbe Tobbe deleted the tobbe-dbauth-cookie-lax branch January 9, 2025 07:07
Tobbe added a commit that referenced this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant