View PDF files from WebDAV server using PDFView

I have a webDAV web server hosting a few PDF files, this server runs on the same machine as the gateway.

I can access these PDFs using a browser, but if I copy the URL into the target field of the PDFView component it fails to load.

Any ideas?

“Access to fetch at ‘’ from origin ‘’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.”

Okay so what blocks you is CORS:

To enable this you need to download the CORS ISS Module:

Then configure the web.config file in the directory:

Then you can share files between webservers