You cannot load the viewer and the PDF from different domains for security reasons.
Your code looks to be loading the viewer from https://secureservercdn.net so your PDF URL would have to match. Or better yet, load them both from https://tidning.alternativ.nu
Hm, I have no idea what https://secureservercdn.net is, maybe some securityplugin or something the host Godaddy is using?
I just uploaded the plugin in the wp admin from my computer as usual… How to do it else?
So you cannot load pdf’s from a CDN? Is this universally true, or just true with this particular plugin. Thanks! – Rich
UPDATE: I don’t know if this will work for everyone, but referencing the relative path of the file seemed to work for me. When I view the source, it still appears to be loading from the cdn, however it works…not sure how solid of a solution this is, but good enough for me at the moment.
-
This reply was modified 3 years, 10 months ago by jrstaatsiii.
It can’t load from a CDN due to security concerns.
https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-xhr
I’m glad you figured out something that worked for you though.
The same here, even with the last update 1.5.1, the pdf cannot be showed in firefox.
https://www.jorge-diaz.org/jorge-diaz-en-cineyliteratura-cl/
-
This reply was modified 3 years, 10 months ago by Marlimant.