I try to do ajax, my code written on a https site it request to non https, but the resources were blocked by Chrome.
$.ajax({
ur
Just change the http://
in your url variable to //
, so when the page is loaded with http, the ajax request would use the http protocol, if loaded with https, the ajax request protocol would be set by the browser to https. i.e, your code should look like:
$.ajax({
url : "//example.com/non-https",
..
..