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

CompileError: WebAssembly.instantiate(): Refused to compile or instantiate WebAssembly module #3043

Open
RiccardoRiggi opened this issue Jan 21, 2025 · 3 comments

Comments

@RiccardoRiggi
Copy link

Good morning, since January 20, 2025 we have encountered a blocking bug that prevents the rendering of PDF files:

Uncaught (in promise) RuntimeError: Aborted(CompileError: WebAssembly.instantiate(): Refused to compile or instantiate WebAssembly module because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self' http: https: ws: wss: data: blob: 'unsafe-inline'"). Build with -sASSERTIONS for more info.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome not work (v. 131), Firefox at the moment yes
  • React-pdf version a lot, like (3.1.9, 3.1.2, 4.1.6, )

We would like to avoid changing CSP policies to protect our applications from xss vulnerabilities

Do you know how to help us? Thank you in advance

@leotankilevich
Copy link

How is it going?

@didemkkaslan
Copy link

Same issue

@buzzo123
Copy link

buzzo123 commented Feb 5, 2025

same

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

4 participants