Skip to content

Commit

Permalink
Merge pull request #713 from openziti/interstitial_chrome
Browse files Browse the repository at this point in the history
Fix for zrok_interstitial Cookie on Chrome-based Browsers
  • Loading branch information
michaelquigley authored Jul 29, 2024
2 parents 311d58e + b249707 commit ed09ab2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions endpoints/publicProxy/interstitialUi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ed09ab2

Please sign in to comment.