Will the following jQuery AJAX request use HTTPS if the original web page load was via HTTPS?
$.ajax({
url: 'ajax/test.html',
success: function(data) { alert(data); }
});
Yes, a relative URL works relative to the current host, protocol and port.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With