Network failure & CORS errors


Product: PDFTron

Product Version: ‘8.6.1’

Please give a brief summary of your issue:
I am using vue 3 stack + webviewer. Everything is fine on the personal server, but when deploying to hosting, I ran into a problem.

Please describe your issue and provide steps to reproduce it:
Functionality: on domain: web application for viewing pdf files stored on the server and received via api from But for some reason, when I try to view pdf through webviewer, I get: Network failure. Help who faced similar.

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Would you be able to provide the link to your WebViewr webapp so we can debug it there?

It looks like the CORS issue, you need to add CORS support in your file server like described there PDFTron Systems Inc. | Documentation
The from this URL is not accessible from WebViewer because there is not “Access-Control-Allow-Origin” header is set in the HTTP calls. And you may need to add headers like these:

Access-Control-Allow-Methods: GET, HEAD
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers:  Accept-Ranges, Content-Length, Content-Range