From 9ee1087ac955850483b9cdc22a33844a602b24cd Mon Sep 17 00:00:00 2001 From: brendandahl Date: Mon, 12 Mar 2012 15:20:20 -0700 Subject: [PATCH] Created Frequently Asked Questions (markdown) --- Frequently-Asked-Questions.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Frequently-Asked-Questions.md diff --git a/Frequently-Asked-Questions.md b/Frequently-Asked-Questions.md new file mode 100644 index 0000000..c32055f --- /dev/null +++ b/Frequently-Asked-Questions.md @@ -0,0 +1,5 @@ +* [Can I load a pdf from another server (cross domain request)?](#faq-xhr) + + +## 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. \ No newline at end of file