Add `nonce` attribute to `<style>` elements

`nonce` attribute needs to be set on the style elements to avoid CSP violations.
This commit is contained in:
raviks789 2023-07-24 10:05:19 +02:00
parent da1bf7048d
commit afd2a65df6
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ use Icinga\Util\Csp;
</div>
</div>
<script type="text/javascript" src="<?= $this->href('js/logout.js'); ?>"></script>
<style type="text/css">
<style type="text/css" nonce="<?= Csp::getStyleNonce(); ?>">
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
background-color: #0095bf;