Conversation
🦋 Changeset detectedLatest commit: 802fd8f The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…ic-fix-from-clerkjs
|
!snapshot |
|
Hey @anagstef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@1.1.0-snapshot.v1f5b5e4 --save-exact
npm i @clerk/clerk-js@5.7.2-snapshot.v1f5b5e4 --save-exact
npm i @clerk/elements@0.9.0-snapshot.v1f5b5e4 --save-exact
npm i @clerk/clerk-expo@1.2.3-snapshot.v1f5b5e4 --save-exact
npm i gatsby-plugin-clerk@5.0.0-beta.45 --save-exact
npm i @clerk/localizations@2.4.6-snapshot.v1f5b5e4 --save-exact
npm i @clerk/ui@0.1.3-snapshot.v1f5b5e4 --save-exact |
|
So it seems this PR reverts #3245 and proposes another solution |
|
@panteliselef Exactly! This PR removes the hacky Cypress fix and proposes a more holistic solution for |
…ic-fix-from-clerkjs
…ic-fix-from-clerkjs
…ic-fix-from-clerkjs
…ic-fix-from-clerkjs
…Site is Lax or Strict
…ic-fix-from-clerkjs
Description
This PR removes the specific fix we did a while ago for Cypress.
The real reason our cookies where getting deleted in Cypress Chrome is because Chrome requires
Securewhen settingSameSite=Nonecookies.Safari needs a bit of a different handling because it does not consider
localhostto be a secure context, so in Safari localhost cookies cannot have theSecureattribute.So the new logic about the
Secureattribute on cookies goes as follows:httpslocation then addSecureon cookies.https:Secure(safari considers secure onlyhttpsorigins).window.isSecureContextproperty exists, then respect it (safari does not work correctly with this, that's why we added a condition before this)localhostand SameSite is set toNone, add theSecureattribute (that's required by Chrome)Checklist
npm testruns as expected.npm run buildruns as expected.Type of change