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?

“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 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.

--

--

Digital UX & Web manager for a S&P 500 FinTech company & COO of Side Role, a marketing agency partnering w In-house Teams & Agencies, Non-profits, & Start-Ups.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
CR Rollyson

Digital UX & Web manager for a S&P 500 FinTech company & COO of Side Role, a marketing agency partnering w In-house Teams & Agencies, Non-profits, & Start-Ups.