Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome 38: jQuery.ajax() fails without calling error/complete handlers when requesting http-url from https-page #1717

Closed
kkabell opened this issue Oct 17, 2014 · 1 comment

Comments

@kkabell
Copy link

kkabell commented Oct 17, 2014

When making an ajax-request to a http-url from a page loaded over https, the request is blocked in Chrome 38, but neither the error handler nor the complete handler functions are called.

In Safari 7, the request succeeds (with a warning) and the success and complete handlers are called.
In Firefox 32, the request fails and the error and complete handlers are called.

Example: https://openascent.org/static/ajax-chrome.html

@dmethvin
Copy link
Member

The page is throwing an error due to the security problem. It doesn't call any of the handlers because the error occurs on the xhr .send() method before the request starts. You could try/catch the $.ajax() call perhaps?

@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants