mirror of
https://github.com/openziti/zrok.git
synced 2025-02-16 18:20:51 +01:00
fix for chrome-based browsers and setting the client-side interstitial cookie
This commit is contained in:
parent
3283ad0cc0
commit
2cb3c1428a
@ -108,8 +108,10 @@
|
|||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
function onClick() {
|
function onClick() {
|
||||||
let e=new Date; e.setTime(e.getTime()+6048e5);
|
const d = new Date();
|
||||||
document.cookie = 'zrok_interstitial = 1; expires=${e}; path=/; SameSite=None';
|
d.setTime(d.getTime() + (7 * 24 * 60 * 60 * 1000));
|
||||||
|
let expires = "expires=" + d.toUTCString();
|
||||||
|
document.cookie = "zrok_interstitial=1;" + expires + ";path=/;SameSite=None';domain=" + window.location.hostname;
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user