Using hashes to allow inline scripts


Running inline scripts

This page is running inline script and styles.

Here the script runs and styles are applied with sha256's.

The value was copied from the browser's output

Drawbacks of using hashes

The disadvantage of using sha256's is that you need to update the hash (by copying them from the browser's console) every time you make a change to the script.