The CspNonce template part renders a nonce value.
CspNonce
<% CspNonce %>
<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 2 days ago
Was this helpful?