Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change DefaultCookieConfig to use the SameSiteLaxMode
* Redirecting to a provider's AuthURL as part of Login creates a chain of redirects to the configured backend callback handler to set a session cookie and (typically) redirect to a profile page * Strict cookies would not be sent in the request to the profile page because the redirect chain originated with a redirect to the login provider. The original referrer is used throughout the redirect chain. Because of this browser behavior, most users will need to use SameSite lax mode If you understand the implications, you can still set strict mode: ``` cookieConfig := sessions.DefaultCookieConfig cookieConfig.SameSite = http.SameSiteStrictMode ``` Rel: * https://www.nogginbox.co.uk/blog/strict-cookies-not-sent-by-request * https://bugzilla.mozilla.org/show_bug.cgi?id=1453814
- Loading branch information