: A POST request on a page with HTTPS is done automatically in HTTPS? If I make a request to page.php (AJAX) with JavaScript from a HTTPS page, the request is automatically made page.php
If I make a request to page.php (AJAX) with JavaScript from a HTTPS page, the request is automatically made page.php directly with HTTPS or HTTP? If HTTP, how to send a request (to the same domain) with HTTPS with pure JavaScript?
More posts by @Sent6035632
1 Comments
Sorted by latest first Latest Oldest Best
More information is needed to be 100% sure (code sample, framework, ...), but the likely answer is yes.
If you POST with a relative URL, then the same host/port as the current page will be used.
You can open Chrome/Firefox's inspector to see how the browser actually made the request.
If you give the browser an absolute URL, then you can specify the http/https in the URL.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.