jQuery ajax and SSL?

It violates JavaScript’s same-origin policy, because it doesn’t see the HTTPS URL as being from the same source as the HTTP URL. You can get around this by using JSONP or setting a Access-Control-Allow-Origin header in the response from the web service. Many web services will be setup to do this already.

Leave a Comment