I know that something is calling over http instead of https, but actually I don't know how to fix this issue!
$.ajax({
type: "GET",
url: window.location.href.substring(0, location.href.lastIndexOf("/") + 1) + '/MyService.asmx/MyMethod';,
data: 'param=' + JSON.stringify({ "myParam": value.trim() });,
dataType: "text",
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert("Request: " + XMLHttpRequest.toString() + "\n\nStatus: " + textStatus + "\n\nError: " + errorThrown);
}, ...
I even tried this way but no success:
Url: '//MyService.asmx/MyMethod';
Given error is: Mixed Content: The page at 'https://www.example.com/MyPage.aspx' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.example.com/MyService.asmx?param=paramValue'. This request has been blocked; the content must be served over HTTPS.
Any suggestion?