File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/clerk-js/src/core/auth/cookies Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @clerk/clerk-js ' : patch
3+ ---
4+
5+ Forcing \_\_ session cookie to have SameSite=none attribute in the CHIPS build variant
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export const createSessionCookie = (cookieSuffix: string): SessionCookieHandler
2929
3030 const set = ( token : string ) => {
3131 const expires = addYears ( Date . now ( ) , 1 ) ;
32- const sameSite = inCrossOriginIframe ( ) ? 'None' : 'Lax' ;
32+ const sameSite = __BUILD_VARIANT_CHIPS__ ? 'None' : inCrossOriginIframe ( ) ? 'None' : 'Lax' ;
3333 const secure = getSecureAttribute ( sameSite ) ;
34- const partitioned = __BUILD_VARIANT_CHIPS__ && secure && sameSite === 'None' ;
34+ const partitioned = __BUILD_VARIANT_CHIPS__ && secure ;
3535
3636 // If setting Partitioned to true, remove the existing session cookies.
3737 // This is to avoid conflicts with the same cookie name without Partitioned attribute.
You can’t perform that action at this time.
0 commit comments