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

Hello everyone, I'm using pdf viewer version 6.3.2 and it runs fine locally but after build and publish I'm having this issue Refused to create a worker from 'blob #1067

Open
SolaMuhammad opened this issue Feb 13, 2024 · 0 comments

Comments

@SolaMuhammad
Copy link

SolaMuhammad commented Feb 13, 2024

Bug Report or Feature Request (mark with an x)

Hello everyone, I'm using pdf viewer version 6.3.2 and it runs fine locally but after build and publish I'm having this issue

main-es2015.ebb4db305310d7ca5c7f.js:2 Refused to create a worker from 'blob:websitename/969bca06-13f6-4652-9932-f4783bd7bd1d' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' www.google.com www.gstatic.com". Note that 'worker-src' was not explicitly set, so 'script-src' is used as a fallback.

_initialize @ main-es2015.ebb4db305310d7ca5c7f.js:2
PDFWorker @ main-es2015.ebb4db305310d7ca5c7f.js:2
getDocument @ main-es2015.ebb4db305310d7ca5c7f.js:2
loadPDF @ main-es2015.ebb4db305310d7ca5c7f.js:2
ngOnChanges @ main-es2015.ebb4db305310d7ca5c7f.js:2
(anonymous) @ main-es2015.ebb4db305310d7ca5c7f.js:2
invokeTask @ polyfills-es2015.e516cc033fa4dc2f1c76.js:2
onInvokeTask @ main-es2015.ebb4db305310d7ca5c7f.js:2
invokeTask @ polyfills-es2015.e516cc033fa4dc2f1c76.js:2
runTask @ polyfills-es2015.e516cc033fa4dc2f1c76.js:2
invokeTask @ polyfills-es2015.e516cc033fa4dc2f1c76.js:2
invoke @ polyfills-es2015.e516cc033fa4dc2f1c76.js:2
n.args. @ polyfills-es2015.e516cc033fa4dc2f1c76.js:2
main-es2015.ebb4db305310d7ca5c7f.js:2 Warning: Setting up fake worker.
main-es2015.ebb4db305310d7ca5c7f.js:2 Refused to load the script 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.5.207/pdf.worker.min.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' www.google.com www.gstatic.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

can anyone help please

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

1 participant