What’s the purpose of the HTML “nonce” attribute for script and style elements?

W3C says there is a new attribute in HTML5.1 called nonce for style and script that can be used by the Content Security Policy of a website.

I googled about it but finally didn’t get it what actually this attribute does and what changes when using it?

1 Answer
1

Leave a Comment