3

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); } }); 

1 Answer 1

8

Yes, a relative URL works relative to the current host, protocol and port.

Sign up to request clarification or add additional context in comments.

1 Comment

that was my recollection, just looking for a quick confirmation, Thanks!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.