Merge pull request #713 from openziti/interstitial_chrome

Fix for zrok_interstitial Cookie on Chrome-based Browsers
This commit is contained in:
Michael Quigley 2024-07-29 14:28:04 -04:00 committed by GitHub
commit ed09ab2c25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,8 @@
## v0.4.37
FIX: Fix for setting the `zrok_interstitial` cookie on Chrome-based browsers.
FIX: Fix for `store.IsAccountGrantedSkipInterstitial` to respect the `deleted` flag.
FIX: When an error occurs connecting to the proxied endpoint, the `proxy` backend should return HTTP status `502` (https://github.com/openziti/zrok/issues/703)

View File

@ -108,8 +108,10 @@
<body>
<script>
function onClick() {
let e=new Date; e.setTime(e.getTime()+6048e5);
document.cookie = 'zrok_interstitial = 1; expires=${e}; path=/; SameSite=None';
const d = new Date();
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();
}
</script>