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 2b1c7b0 commit b750b31Copy full SHA for b750b31
1 file changed
src/plugins/incompatible-warning/index.ts
@@ -277,7 +277,8 @@ function getInlineScript(): string {
277
278
if (button) {
279
button.addEventListener('click', function() {
280
- document.cookie = '${INCOMPATIBLE_COOKIE}=1; max-age=${INCOMPATIBLE_COOKIE_EXPIRED}; path=/';
+ var secure = location.protocol === 'https:' ? '; Secure' : '';
281
+ document.cookie = '${INCOMPATIBLE_COOKIE}=1; max-age=${INCOMPATIBLE_COOKIE_EXPIRED}; path=/; SameSite=Lax' + secure;
282
window.location.reload();
283
});
284
}
0 commit comments