Asked a question and answered it based on whatI've been able to find.

vo1stv 2012-06-14 07:48:58 -07:00
parent 04b61e714b
commit 7940694862

@ -1,5 +1,12 @@
* [Can I load a pdf from another server (cross domain request)?](#faq-xhr)
* [What browsers are supported (and where can I find install procedures)?](#faq-yis)
<a name="faq-xhr"></a>
## Can I load a pdf from another server (cross domain request)?
Not by default, but it is possible. Pdf.js runs with the same permissions as any other javascript, which means it cannot do cross origin requests (see [Same origin policy](http://en.wikipedia.org/wiki/Same_origin_policy)). There are some possible ways to get around this such as using [CORS](http://enable-cors.org/) or setting up a proxy on your server that will feed pdf.js the pdf. Both workarounds are out of the scope of the pdf.js project and we will not provide code to do either.
Not by default, but it is possible. Pdf.js runs with the same permissions as any other javascript, which means it cannot do cross origin requests (see [Same origin policy](http://en.wikipedia.org/wiki/Same_origin_policy)). There are some possible ways to get around this such as using [CORS](http://enable-cors.org/) or setting up a proxy on your server that will feed pdf.js the pdf. Both workarounds are out of the scope of the pdf.js project and we will not provide code to do either.
<a name="faq-yis"></a>
## What browsers are supported (and where can I find install procedures)?
FireFox is widely supported and installation procedures are described in the README.md at the PDF.js GitHub landing page [https://github.com/mozilla/pdf.js].