mozilla/pdf.js — pull request #1663 by asraniel (2012-05-07 07:26:10+00:00)
Title: Authentication

Enable authentication when loading a remote PDF using an url.
This closes this issue:
https://github.com/mozilla/pdf.js/issues/1659

Furthermore, any header can be added to the request, making it even more valuable. To do this, an optional parameter headers was added to the PDFJS.getDocument function. It accepts an Object that contains the headers like this:
{ Authorization: "BASIC XXX",
}