在項目中使用了mozilla/pdf.js,在使用中需要設置GlobalWorkerOptions.workerSrc,代碼如下import PDFJS from 'pdfjs-dist'vueconfigjs配置打包不壓縮?import workerSrc from 'pdfjs-dist/build/pdf.worker.js'PDFJS.GlobalWorkerOptions.worke
1,报错Refused to load the image 'http://localhost:8080/favicon.ico'because it violates the following Content Security Policy directive:"default-src 'none'". Note that 'img-src' was not explicitly set,so 'default-