Aleksi Luukkonen
Results
2
comments of
Aleksi Luukkonen
I think this is due to using the legacy version of pdfjs-dist. The transpiler that they use generates code that uses eval when polyfilling for async/await as discussed here: https://github.com/mozilla/pdf.js/issues/11036...
I can confirm that using `patch-package` and replacing every instance of `pdfjs-dist/legacy/build/` with `pdfjs-dist/build/` in the react-pdf package fixes the problem and allows the use of a strict CSP without...