CSP Nonce
Syntax
<% CspNonce %>
Example
<html>
<head>
<style nonce="<% CspNonce %>">
body {
background: tomato;
}
</style>
</head>
<body>
<!-- Body content -->
<script nonce="<% CspNonce %>">
console.log("Hello, World!");
</script>
<!-- Body content -->
</body>
</html>
Last updated
Was this helpful?