JavaScript cross-domain call: call from HTTP to HTTPS

前端 未结 4 1035
鱼传尺愫
鱼传尺愫 2020-12-01 12:35

I need to make an asynchronous call to a secure (HTTPS) URL for the same domain.

Currently the page is working with regular HTTP (non-secure).

In other word

4条回答
  •  粉色の甜心
    2020-12-01 13:09

    I am using Access-Control-Allow-Origin. You just send the header and you are fine.

    See also AJAX, Subdomains, and SSL

提交回复
热议问题