vue-quagga icon indicating copy to clipboard operation
vue-quagga copied to clipboard

Refused to create a worker from 'blob:https://MYURL/dbeed717-2527-4d43-acc3-b90207c4610b' because it violates the following Content Security Policy directive: "default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content:". Note that 'worker-src' was not explicitly set, so 'default-src' is used as a fallback.

Open EmadFani opened this issue 5 years ago • 2 comments

quagga.min.js:1 Refused to create a worker from 'blob:https://MYURL/dbeed717-2527-4d43-acc3-b90207c4610b' because it violates the following Content Security Policy directive: "default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content:". Note that 'worker-src' was not explicitly set, so 'default-src' is used as a fallback.

DOMException: Failed to construct 'Worker': Access to the script at 'blob:https://MYURL/dbeed717-2527-4d43-acc3-b90207c4610b' is denied by the document's Content Security Policy.

EmadFani avatar Aug 28 '19 06:08 EmadFani

is there a solution for it ?

EmadFani avatar Aug 28 '19 06:08 EmadFani

Add this policy worker-src: blob:; inside the Content-Security-Policy header.

josephpage avatar Nov 19 '19 22:11 josephpage