79361648

Date: 2025-01-16 12:56:38
Score: 2.5
Natty:
Report link

I think I have an idea for you. What if you add: style-src-attr: 'unsafe-inline', but you secure style-src, and script-src. In this way essentially you are saying: "No inline script tags, no inline style tags, I could have dynamic style attributes but it will come only from the scripts I already approved". I know it adds inline styles as well. For those you can generate sha-256 code and add it in your style-src directive. The only thing that is a problem in that approach is that you may have to update it if you change the styling of the banner.

I do not see an issue with that approach, do you think it is fine for you?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: vvn050