-
-
Notifications
You must be signed in to change notification settings - Fork 420
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 required after release 5.2.2 #419
Comments
You may have to submit an issue to mozilla/pdf.js instead of here to make progress since this is a problem inside a dependency. Here is the offending code: // pdf.js:13152-13154
var g = function () {
return this;
}() || Function("return this")(); In particular the Function constructor is probably triggering the Try running the first half of the assignment in your inspector to see if it is an environment issue. Or try something like: var g = function () {
return 'apples';
}() || Function("return 'bananas'")(); and see what |
Looks like it is going to be resolved with the next release: |
Works with release |
@loremaps 5.3.2 was working fine but trying to upgrade to 5.3.4 broke it again. Any idea why it's happening again? |
@maxime1992 yes I believe you are also facing this issue: mozilla/pdf.js#11036 |
Yup thanks I commented there! |
Did anyone here ever resolve this issue? I'm still having issues with the latest 7.0.1. Edit: it looks like the issue is being tracked here. Meanwhile, you can get past CSP issues by the solution in this comment. In case the link becomes stale for whatever reason, run the below before angular loads:
I have a |
Bug Report or Feature Request (mark with an
x
)From release
5.2.2
our Content Security Policy gets violated becauseunsafe-eval
are not allowed.I think it might be related to this bump: d146258
The text was updated successfully, but these errors were encountered: