jQuery $.getJSON not loading in IE Error Access is Denied | Check url for https://
No long story. A request works well for all browsers expect IE… shocker. IE will throw a non-descript “Error: Access is Denied”. Not always initially fun chasing down a ghost.
An API I recently built was returning this error when trying to access a Wistia endpoint. The Wistia doc specifies the endpoint URL protocall as being “http://”. I didn’t think any more about it until I finally found an article explaining more around this vanilla IE error and it does make sense once understanding what it is — IE doesn’t want to return mixed (http & https) content, because it’s a security compromise.
By adding an S to the http:// request, it works as intended:
Hope this solves it. If not, continue reading for a solution that worked for me, prior to making this minor adjustment.
Doesn’t solve your issue?
In the event you’ve tried the above or already have the proper protocalls in place, it could be the endpoint you’re accessing – in which case here is another offer of hope — a small cross-domain library that:
“Implements automatic Cross Origin Resource Sharing support using the
XDomainRequestobject for IE8 and IE9 when using the $.ajax function in jQuery 1.5+.”
If you found this helpful, like > follow > share > comment.
CR Rollyson is a Digital UX & Web manager for a S&P 500 FinTech company and is the COO of Side Role, a marketing agency partnering with In-house Teams & Agencies, Non-profits, and Start-Ups. Learn more about Side Role here.