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:
parent
da1bf7048d
commit
afd2a65df6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue