I am integrating a cookie tool - onetrust. I add them by adding scripts in the of the html page. The scripts call other scripts and create inline styles. I manage to embrace all scripts by adding a 'nonce' to this scripts. I have a problem with inline styles which are created on the cdn domain of the onetrust tool. Is it possible to load scripts that contain dynamically injected inline styles with the style-src 'self' set in the Content Security Policy (CSP)?
Has anyone solved a similar problem yet or is the only solution to add an 'unsafe-inline' directive to the style-src in csp?