http-extensions
http-extensions copied to clipboard
[WIP] RFC6265bis: "Lax-Allowing-Unsafe" applies to cross-site redirect
This PR is a WIP while waiting on data to show us that this is the correct approach.
Until https://github.com/httpwg/http-extensions/pull/1348, the spec mistakenly didn't define the same-site-ness to include the redirect chain. When some UAs, such as Chrome, attempted to apply the changes in https://github.com/httpwg/http-extensions/pull/1348 they found that users complained of breakage. Bug reports hinted that this occurred during similar situations as Lax+POST, i.e.: young cookies with an unsafe method.
This changes modifies lax-allowing-unsafe to also include cookies that being blocked due a cross-site redirect with an unsafe method. It retains the suggested 2 min limit on cookie age.