We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee2204a commit 65d87b3Copy full SHA for 65d87b3
packages/sandbox-hooks/preview-secret.js
@@ -22,7 +22,7 @@ export const setPreviewSecret = secret => {
22
cookieValue !== secret
23
) {
24
if (secret) {
25
- document.cookie = `${PREVIEW_SECRET_COOKIE_NAME}=${secret}`;
+ document.cookie = `${PREVIEW_SECRET_COOKIE_NAME}=${secret};samesite=none;secure;`;
26
location.reload();
27
} else {
28
document.cookie = `${PREVIEW_SECRET_COOKIE_NAME}=; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
0 commit comments