• I’m struggling to successfully pull content from my WordPress media library into the PDF Viewer – I receive the ‘File Origin Does Not Match Viewer’s’ error.

    On the front page of my website, cutthroughcollective.org, I am trying to display this: https://cutthroughcollective.org/wp-content/uploads/2022/12/Zine-Version2.pdf

    I’m not sure where I’m going wrong, though when I tried a similar-ish free shortcode-based pdf viewer for WordPress I ran into the same issue of my content not loading in the feature.

    The shortcode I am inputting is: [pdfjs-viewer url=https://cutthroughcollective.org/wp-content/uploads/2023/05/ZineVersion2.pdf viewer_width=600px viewer_height=700px fullscreen=true download=true print=true]

    Any help? Would be appreciated very much!

    UPDATE: I ended up finding a simpler (also free) programme for this that doesn’t require shortcode, so don’t have a material need for the support anymore. Though am still interested in what was up here, any maybe it’s still helpful for you developers to know that this can be an issue for some users?

    • This topic was modified 1 year, 10 months ago by grunk1905.
Viewing 1 replies (of 1 total)
  • Hello,
    I had the same error “file origin does not match viewer’s” with plugin “PFSjs Viewer” and solved it as shown below.

    In WordPress “Settings”, fields “WordPress Address (URL)” and “Site Address (URL)” should be https and not http.

    By replacing in both fields :
    https://mysite.com
    with
    https://mysite.com
    this solved error for me : pdf pages are now correctly viewed with plugin “PFSjs Viewer” and error “file origin does not match viewer’s” no longer occurs.

    Hope this helps

    Configuration
    WordPress : 6.2.1
    PDFjs Viewer : 2.1.8
    https certificate : Let’s encrypt

    • This reply was modified 1 year, 10 months ago by 06userit.
Viewing 1 replies (of 1 total)
  • The topic ‘File Origin Does Not Match Viewer’s’ is closed to new replies.