Title: PDF loading problems
Last modified: November 12, 2020

---

# PDF loading problems

 *  [peripheralvision](https://wordpress.org/support/users/peripheralvision/)
 * (@peripheralvision)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/pdf-loading-problems/)
 * Look, I’m a biker. I’m involved in a tiny one make forum but I’ve been lumbered
   with the writhing mass of bloatware which is WordPress.
 * Suddenly the links to my magazine scans have failed. Message was “file origin
   does not
    match viewer’s”
 * A bit of Googling and I found the HOSTED_VIEWER_ORIGINS line and added my domain
   to it, both in http and https form.
    Now the message is “Message: Failed to fetch”
 * Stuck now. Where do I go?
 * Yours grumpily, Lonesome.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpdf-loading-problems%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/pdf-loading-problems/#post-13656930)
 * Hi Lonesome
 * The PDFs need to be loaded from lonesometwin.com in order for PDFjs to load them.
   This is a security feature. Currently I suspect they’re being loaded from lonesometwin.
   co.uk. There is a way around it with HOSTED_VIEWER_ORIGINS but I think that has
   to be a part of the code when I built it out.
 * At this time, I’m not sure a way around it.
 * Also, your post is private so I can’t see it.
 *  Thread Starter [peripheralvision](https://wordpress.org/support/users/peripheralvision/)
 * (@peripheralvision)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/pdf-loading-problems/#post-13694201)
 * Thanks, could you try this one? Still a problem.
 * [http://www.lonesometwin.com/history/pdf-test/](http://www.lonesometwin.com/history/pdf-test/)
 *  Plugin Author [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * (@twistermc)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/pdf-loading-problems/#post-13695602)
 * Ok, the issue now is that your website is loading over https but then PDF is 
   http. Update the PDF URL to be https and all should be good.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PDF loading problems’ is closed to new replies.

 * ![](https://ps.w.org/pdfjs-viewer-shortcode/assets/icon-256x256.png?rev=2301161)
 * [PDF.js Viewer](https://wordpress.org/plugins/pdfjs-viewer-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [loading](https://wordpress.org/support/topic-tag/loading/)

 * 3 replies
 * 2 participants
 * Last reply from: [Thomas McMahon](https://wordpress.org/support/users/twistermc/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/pdf-loading-problems/#post-13695602)
 * Status: not resolved