Fix proof cookie domain

This commit is contained in:
Pascal Engélibert 2025-04-19 18:07:50 +02:00
commit 8eacc80249

View file

@ -43,7 +43,7 @@ function get_cookie(name) {
return parts.pop().split(";").shift();
}
function submit_proof(proof) {
document.cookie = "mesozoa-proof="+proof+"; domain=127.0.0.1; path=/; max-age=3600; samesite=strict";
document.cookie = "mesozoa-proof="+proof+"; domain="+window.location.hostname+"; path=/; max-age=3600; samesite=strict";
window.location.reload();
}
function timeout(ms) {