The meta-buy of pdf.js has been annotated with the following code: // if (origin !== viewerOrigin && protocol !== 'blob:') { // throw new Error('file origin does not match viewer\'s'); // }
The main reason is: the HTTPS website loads the PDF resource file address of HTTP, and the PDF resource file address of HTTPS needs to be provided.
Read More:
- [Solved] PDF.js Error: Cannot use the same canvas during multiple render()
- [Solved] Pdfjs Preview PDF error: formaterror: bad fcheck in flat stream: 120, 239
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solution] VUE.js Load a local image with parameters in the script
- [Solved] Nuxt Import qrcodejs2.js / QRCode.js Error: document is not defined
- Solution to some map files in JS folder after Vue packaging (remove the map. JS file)
- [Solved] Layui 404 Error: Static resources cannot load layui.js and layui. css
- [vite] Failed to parse source for import analysis because the content contains invalid JS syntax.
- [Solved] Failed to load resource: net::ERR_FILE_NOT_FOUND
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- [Chrome]: DevTools failed to load source map… (How to Solve)
- [Solved] Failed to load config “prettier“ to extend from.?
- [Solved] Failed to load config “react-app“ to extend from.
- [Solved] Uncaught (in promise) DOMException: Failed to load because no supported source was found.
- [Solved] webpack Package Error: ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can‘t resolv
- The solution to the failure of HTML introducing external JS
- [Solved] devTools failed to load sourcemap: Could not parse content for map
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- JS to determine whether the string contains a character
- request.js?b775:101 Uncaught (in promise) Error: Failed to convert value of type ‘java.lang.String’ to required type ‘java.lang.Long’;