set cookie sameSite

This commit is contained in:
Paul Rodwell
2020-06-18 14:35:17 +01:00
parent c85474aae7
commit 230ed1c707
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@
<script src="/security/winchan.js"></script>
<script>
document.cookie = "state=loggedIn" + ";domain=." + window.location.hostname + "; path=/; max-age=60;"
document.cookie = "state=loggedIn" + ";domain=." + window.location.hostname + "; path=/; max-age=60; sameSite=Strict;"
var wc = WinChan.onOpen(function(origin, r, cb) {
cb({
done: true,