Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

file origin does not match viewer's #13564

Closed
marufahamed26 opened this issue Jun 15, 2021 · 1 comment
Closed

file origin does not match viewer's #13564

marufahamed26 opened this issue Jun 15, 2021 · 1 comment

Comments

@marufahamed26
Copy link

marufahamed26 commented Jun 15, 2021

Configuration:

Web browser and its version: Google Chrome 91.0.4472.101
Operating system and its version: Windows 10
PDF.js version: 2.8
Is a browser extension: No

I have 2 foreign URLs to fetch pdf.

  1. https://infoabz.com/ebook/uploads/examples.pdf
  2. https://ebook.infoabz.com/qazi_anwar/masud_rana/examples.pdf

i am trying by this viewer.html system

<iframe height="100%" width=100% src='lib/web/viewer.html?file=https://infoabz.com/ebook/uploads/examples.pdf'></iframe>

<iframe height="100%" width=100% src='lib/web/viewer.html?file=https://ebook.infoabz.com/qazi_anwar/masud_rana/examples.pdf'></iframe>

1st one link working perfectly but issues come on 2nd urls.

i added domain on HOSTED_VIEWER_ORIGINS as like this

HOSTED_VIEWER_ORIGINS = [ "null", "http://mozilla.github.io", "https://mozilla.github.io", "http://127.0.0.1:8000", "https://infoabz.com", "https://ebook.infoabz.com", "http://infoabz.com", "http://ebook.infoabz.com"];

whats wrong in here

@Snuffleupagus
Copy link
Collaborator

Please refer to #6916 for additional details; closing as INCOMPLETE since most (if not all) of the information request in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md is missing.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants