It’s true, you cannot load a PDF from another domain by default. It’s a security issue. https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-xhr
Thread Starter
alve39
(@alve39)
Hi Thomas, even if the file is in my own server and I use a cdn like bunny cdn the error still appears. If you found a solution to this problem it would really help me.
Thanks
I’m confused. “even if the file is in my own server and I use a cdn like bunny cdn the error still appears” If it’s on a CDN, it’s not going to work.
Thread Starter
alve39
(@alve39)
So there’s no solution to this problem?
Not with my plugin. It’s not setup to load files from other domains due to security concerns. That may change in the future, but I don’t have plans currently.