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

Failed to reslove async component default: SecurityError: Failed to construct 'Worker' : Script at 'xxxxxxx/work.js' cannot be accessed from origin 'xxxx.com'

Open naimao001 opened this issue 3 years ago • 1 comments

version: vue-pdf 4.2.0 pdfjs-dist 2.5.207 测试环境没问题,这是在生产环境跨域了? 只修改过 const filename = _loaderUtils2.default.interpolateName(this, options.name || '[hash].worker.js'........ 为 const filename = _loaderUtils2.default.interpolateName(this, options.name || 'static/js/[hash].worker.js'........

naimao001 avatar Dec 24 '21 14:12 naimao001

我也有相关的问题,好像跟webpack有冲突 1659940098592

dongshuai777 avatar Aug 08 '22 06:08 dongshuai777