Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SSLを介してページを提供し、AJAX投稿を行う場合:
$.post('/core/somepage.php', ....);
投稿はHTTPS経由で行われますか、それとも次のような絶対URLを入力する必要がありますか?
$.post('https://example.com/core/somepage.php', ....);
また、これは次の場合に適用されますか?
$('#element').load('/core/something.php');
?
はい、投稿はを介して行われhttpsます。定義上、相対パスは現在のスキームを使用します。ご存知ですか?//example.com/somepage明示的なホストに移動したいが、現在のスキームを維持したい場合のようなこともできます。
https
//example.com/somepage