title: Load pdf on foreign url with pdf.js
body: <p>I am trying to load pdf from another server to the viewer of pdf.js in my server.I got error
  &quot;PDF.js v1.4.20 (build: b15f335)
  Message: file origin does not match viewer's&quot;</p>
  <p>I already checked many answer, many of them said that pass the pdf url through a proxy like:- <a href="https://stackoverflow.com/questions/32909940/does-pdf-js-only-work-with-certain-pdfs">link</a></p>
  <p>After searching a lot i found that they release a new patch in which they have lock down any CDR request, correct me if i am wrong:-<a href="https://github.com/mozilla/pdf.js/pull/6916" rel="noreferrer">Here is the link</a></p>
  <p>but in their user manual they specified that it is possible <a href="https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#can-i-load-a-pdf-from-another-server-cross-domain-request" rel="noreferrer">here is the link</a></p>
  <p>I tried all method but not able to enable CDR on my server and many methods didn't work.</p>
  <p>Please help me to resolve this issue.
  My Basic idea is to show pdf(which is hosted on 3rd party server) on my pdf reader(that i made it from pdf.js).</p>