WICG / inert

Polyfill for the inert attribute and property.
Other
924 stars 81 forks source link

Injecting inline style violates strict style csp #146

Closed WimValgaeren closed 4 years ago

WimValgaeren commented 4 years ago

The insertion of the inline style#inert-style tag violates the style-src rule if 'unsafe inline' is not allowed by the csp headers (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src)

Would it be possible to add an option to include the styling as a separate css file?

robdodson commented 4 years ago

that seems reasonable. would you be able to submit a PR with that feature?

robdodson commented 4 years ago

I believe this is fixed by https://github.com/WICG/inert/pull/148