Content Security Policy For Dynamic Inline Styles and Scripts

Good day!

I would like to ask what is the best way to implement Content Security Policy in Umbraco. Our website contains alot of inline styles because of RTE and we need to include its hash in the CSP. I tried to create a function that will dynamicaly render hash. May I know how can I apply it in the CSP header on the fly? Thank you


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/107449-content-security-policy-for-dynamic-inline-styles-and-scripts