Is it possible to allow inline style only in a specific iframe in Electron?
My problem:
I'm trying to load the Whatfix script in the Electron app. The Whatfix script loads everything in iframe
and it's using inline styles, which renders the widget without any styles due to Electron CSP.
I don't want to use unsafe-inline
CSP on the whole application, I need it just on this iframe
which comes from Whatfix.
Error which I get: Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self'"
My CSP directives: default-src 'self';