How can I send an ajax GET request over HTTPS?
XMLHttpRequest cannot load https://********. Origin null is not allowed by Access-Control-Allow-Origin.
You cannot make an AJAX request to an
https page if you are currently in
http because of the Same Origin Policy.
The host, port and scheme (protocol) must be the same in order for the AJAX request to work.
You can either make sure that the originating page is on the same host and scheme or implement CORS (cross-origin resource sharing) on the target domain to permit this particular request.