jQuery $.getJSON not loading in IE Error Access is Denied | Check url for https://

CR Rollyson
2 min readOct 29, 2020

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 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:

$.getJSON(‘https://…’)

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 XDomainRequest object for IE8 and IE9 when using the $.ajax function in jQuery 1.5+.”

https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest

Good luck!

If you found this helpful, like > follow > share > comment.

CR Rollyson is a Digital User Experience & Web Manager for a S&P 500 Fintech company and is the COO of Side Role, a marketing team in Charlotte North Carolina partnering with In-house Teams & Agencies, Non-profits, and Start-Ups. Learn more about Side Role here.

--

--

CR Rollyson

UX & Web mgr for a S&P 500 Fintech & COO of Side Role, a marketing team partnering w In-house Teams & Agencies, Non-profits, & Start-Ups. https://siderole.com