3

I'm trying to run an XHR request on an URL of type "data:application/pdf;base64,..."

It works well on other browsers, but on IE11 I get an "Access refused" error.

Is there any way to make a request of this type work in IE ?

Thanks in advance,

Eino Gourdin
  • 4,169
  • 3
  • 39
  • 67
  • Why? Just strip off the preamble and decode the base64 data instead. – Quentin Jun 17 '15 at 15:56
  • Well I need to pass the data to pdf.js so it can display it. But the lib uses XHR at its core for all requests, which works well in Firefox or Chrome, but not IE. I'm trying to make it work, without re-writing the whole loading layer of pdf.js. – Eino Gourdin Jun 17 '15 at 16:06
  • 2
    Did you ever find a work around for this? – jhamm Sep 13 '17 at 15:13
  • I did, though it was a very specific workaround. My goal was to display the data as a PDF, so what I did was to modify pdf.js' source code to bypass the call to XMLHttpRequest, as I posted [here](https://stackoverflow.com/a/30915805/150015). I guess as long as IE doesn't accept "data:..." requests, the best aim is to seek similar solutions, bypassing the call to XMLHttpRequest altogether. – Eino Gourdin Jun 18 '18 at 06:42

0 Answers0