I am using pdf.js
to extract annotations from pdf files in a firefox add-on. Everything works pretty well except opening local pdf files. PDFJS.getDocument('http://...').then(function(pdf) { ...
works but PDFJS.getDocument('file:///...').then(function(pdf) {
does not.
I am getting this error: Unexpected server response (0) while retrieving PDF ...
Is this a cross-domain issue? I thought that shouldn't be a problem because my code is running from an extension. How can I solve this problem?