Skip to content

Commit f6f8ccb

Browse files
committed
fix deploy preview same site policy
1 parent e203560 commit f6f8ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/originConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ if (netlifyProjectName) {
5555
CORS_ORIGIN.push(new RegExp(`https://deploy-preview-\\d+--${netlifyProjectName}\\.netlify\\.app$`, 'i'));
5656
}
5757

58-
export const SAME_SITE = allowedOrigins.length > 1 ? 'none' : 'strict';
58+
export const SAME_SITE = allowedOrigins.length > 1 || netlifyProjectName ? 'none' : 'strict';

0 commit comments

Comments
 (0)