Adding nonce or hashes to inline scripts

Question

One of my clients has a CSP policy that is VERY tight. And it makes it so all inline scripts are declined.

[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/NJynA.png

So i’m looking in adding a hash or nonce to all scripts on the page, whatever is their origin (I’ve got some coming from things like WPML and Litespeed cache, so I can’t really just manually go add it with a hook every time)

0
Fredy31 2 months 0 Answers 9 views 0

Leave an answer