Content Security Policy (CSP) compatibility beta.

This commit is contained in:
2026-06-20 00:21:19 +02:00
parent 0b76255cfa
commit 8b742d997c
68 changed files with 1632 additions and 1421 deletions

View File

@@ -24,13 +24,9 @@ function addLoginAttempts()
}
function setTimeZoneCookie()
{
?>
<script>
document.cookie = "user_timezone=" + Intl.DateTimeFormat().resolvedOptions().timeZone + "; path=/";
</script>
<?php
}
{ ?>
<script src="/src/js/timeZoneCookie.js"></script>
<?php }
function getUserTimezone()
{