mhemesath/r2d3

IE8 Permission denied when trying to perform AJAX request

Closed this issue · 5 comments

When making an AJAX request through d3.json() to an external resource (hosted on another domain) on IE8 (Windows 7) I get:

Permission denied
r2d3.js                        Line: 7125

Which is the call to request.open().
Note: I'm using the development version of r2d3.js

The error doesn't occur if I use d3.json() on a local resource.

Ok, thanks. I'll try to look into this. In the meantime, I'd fallback to something like jQuery if you have it in your env.

I'm unclear on what you expect the behavior to be — IE8 does not support CORS. I think jQuery falls back to JSONP, but that will only work if the server also supports JSONP. Is that the expectation?

jQuery auto handles JSONP for you. See http://api.jquery.com/jQuery.ajax/

I would expect the d3.json() call falls back to JSONP if CORS is not supported.

Hi there,

This project is no longer being maintained so this issue is being closed. Thank you for using r2d3 and taking the time to report this issue.