ng2-pdf-viewer not working in production giving error

74 Views Asked by At

ng2-pdf-viewer working fine on lower environment but giving below error on production

Refused to load the script 'https://cdn.jsdelivr.net/npm/[email protected]/legacy/build/pdf.worker.js' because it violates the following Content Security Policy directive: "script-src 'self' data: blob:

'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback."

<pdf-viewer [src]="src"></pdf-viewer>

src is a s3 presigned url

how to fix this?

0

There are 0 best solutions below