- Status: Moved to Github
If you want to deploy content security policy on your server and allow loading resources from only certain 3rd party domains, it will also block all inline scripts and styles unless you use nonce="..."
attribute on them. As a workaround "unsafe-inline" could be applied in CSP, but this is not recommended 🤔
https://content-security-policy.com/unsafe-inline/
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce
more info about nonce attribute https://stackoverflow.com/questions/42922784/what-s-the-purpose-of-the-html-nonce-attribute-for-script-and-style-elements
so currently we have to use unsafe-inline https://securityheaders.com/?q=techforum.cz&followRedirects=on 😐 (its still v4 app on live server, but nothing has changed in v5)
Recommended Comments