xibo-cms
xibo-cms copied to clipboard
Strict CSP
This strict CSP works via a Middleware generating a nonce which is subsequently output in the CSP header. That nonce is then pushed through into the Request and Theme so that it can be used on every script tag.
The tricky bit is where a user provides script tags as part of a widget (e.g. embedded widget). In that case Widget HTML renderer takes care of adding nonce for previewing.
fixes xibosignageltd/xibo-private#654