PDF.js Express Version
Detailed description of issue
{When I download the Vue Demo on the website, I replace the default file path to my own file path, But
it just can’t work. The console of Chrome give me the error info:“Access to fecth ‘url’ has been blocked by CORS policy”}. It means that the url is on another remote server, pdf.js express can’t open it. However, I have solved the CORS problem to make sure every file can be fetched from every request. I can open the same file in Chrome or any other pdf viewer software. Can anyone help me?
Expected behaviour
{I expecte to open the remote file by url in a Vue Project.}
Does your issue happen with every document, or just one?
{Every document}
Code snippet
{WebViewer({
path: this.path,
initialDoc: “http://119.29.53.191:7069/download-file-0.0.1/download?fileType=PDF_DOCUMENT&filePath=/usr/local/rgms-resources/document/de0b2446-7092-4b64-8bba-31dd466e7625_reading02-07.pdf”,
// replace with your own PDF file
}, this.$refs.viewer).then((instance) => {
// call apis here
});