Skip to content

When using nonces, do not include the nonce for safari / IE

Compare
Choose a tag to compare
@oreoshake oreoshake released this 24 Jun 21:01

See #150

Safari will generate a warning that it doesn't support nonces. Safari will fall back to the unsafe-inline. Things will still work, but an ugly message is printed to the console.

This opts out safari and IE users from the inline script protection. I haven't verified any IE behavior yet, so I'm just assuming it doesn't work.