-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE 11 can't load pdf #139
Comments
What was your change to the source code? Did you modify the array |
I added two lines code in view.js var HOSTED_VIEWER_ORIGINS = ['null', 'http://mozilla.github.io', 'https://mozilla.github.io']; HOSTED_VIEWER_ORIGINS.push(LOCAL_AUTO_DETECT_ORIGIN); |
Quick sign-of-life: I've started to investigate your topic. As far as I remember, I've already integrated your fix, but I was interrupted by private life. I hope I can find some spare time for this project soon, in a week or two. Stay tuned! Best regards, |
Having the same problem. Any solutions upcoming? |
@rbdv159 I assume you're referring to the "file origin" message? |
@rbdv159 @kubydog After thinking about it for a while, I don't believe this is an error. You've stumbled upon a protection against CORS attacks. No browser except IE11 will accept PDF files that don't come from the same URL as the Angular application. I've tried to reproduce the bug, but I didn't manage to do so. Every combination that came to my mind either works or is rightfully blocked by the CORS protection. The The `window.location.origin´ doesn't make any difference. In my tests, that is. I'll add it as soon as you manage to convince me it's useful. What's your precise scenario? I'll close the ticket now, but I'm still listening to the channel. Don't hesitate to leave your suggestions or - even better - your reproducer (i.e. a small, simple, but complete project showing the bug). Best regards, |
Hello @stephanrauh, the pdf viewer is broken on IE 11

Error Message: file origin does not match viewer's
I did research on this error and found it is caused by view-es5.js. In my project, I did a quick fix based on mozilla/pdf.js#7153, but it needs me to modify the source code
Is there any easy way to avoid this?
ngx-extended-pdf-viewer version: 1.5.1
angular version: 7
After I fixed the pdf loading issue. I got issues of changing page:

By scrolling:
By selecting thumbnail:

By entering page number in page input box, nothing happen, doesn't go to the page entered.
Chrome works fine
The text was updated successfully, but these errors were encountered: