Load a file using a whitelisted nonce.

<script nonce="abc123">alert("Hello world!");</script>

 

Load a file using a whitelisted nonce.

<script nonce="superlongnonce1234567890">alert("Hello world!");</script>

 

Use an inline style with a whitelisted nonce.

<style nonce="def456">#example1{font-weight: bold;}</style>
<p id="example1">This should be bold!</p>

This should be bold!

 

Use an inline style with a whitelisted nonce.

<style nonce="superlongnonce0987654321">#example2{font-style: italic;}</style>
<p id="example2">This should be italic!</p>

This should be italic!