Skip to content
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 unsafe-eval restricted #54

Closed
GitShaffi opened this issue Nov 11, 2019 · 1 comment
Closed

CSP unsafe-eval restricted #54

GitShaffi opened this issue Nov 11, 2019 · 1 comment

Comments

@GitShaffi
Copy link

Content Security Policy gets violated because unsafe-eval are not allowed in our webservers.

viewer.js:3328 Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' *.myapp.com ".

The viewer doesn't work when the unsafe-eval is restricted.

@codehippie1
Copy link
Contributor

@GitShaffi Please raise this concern to PDFJS project: https://github.com/mozilla/pdf.js/

This angular component uses Viewer.js internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants