-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSP Issues #12
Comments
I'm working on this. |
Hi,
|
@theimo1221 I think a good compromise might be to load the docxjs script and other helper scripts like jszip inside an iframe and then use the CSP ( Have you tried this ? |
I did and it didn't work in our application. |
As far as I know csp restricts from appending <style> into document, but not from creating <style> element. Knowing that, there is one quick workarround but only for chrome (for know), but maybe it will give you some ideas for futher investigation:
|
#17 resolves the topic for me. |
Hello @zVolodymyr,
Unfortunately the creation of those style blocks result in violations to csp settings in regards to
inline-styles
.Do you see any possibility to introduce an option, to style all elements directly with js calls, instead of providing a style block?
Thanks and best regards
Thiemo
The text was updated successfully, but these errors were encountered: