mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.33k stars 9.97k forks source link

pdf.worker.js:41568 Refused to get unsafe header "Accept-Ranges" #7414

Closed HWliao closed 8 years ago

HWliao commented 8 years ago

Link to PDF file (or attach file here):

Configuration:

Steps to reproduce the problem:

What is the expected behavior? (add screenshot)

What went wrong? (add screenshot)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Snuffleupagus commented 8 years ago

Since the issue template is completely empty, it's difficult to know what the problem is from only a heading. However, it sounds like it might be a CORS issue, so please see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-xhr.

Closing as answered. (And if you need further help, please ensure that you provide a lot more information than this.)

gochinj commented 8 years ago

Getting same error.

I am uploading a PDF. How it was originally created is unknown, but assuming Adobe Acrobat. Nothing in my scenario involves HTTP. This error occurs when using a "data uri"