Skip to content

Conversation

@Tobbe
Copy link
Contributor

@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
@Tobbe Tobbe modified the milestones: next-release, v8.5.0 Jan 26, 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