How to use Access-Control-Allow-Origin: https://www.example.com?

前端 未结 2 1249
渐次进展
渐次进展 2021-02-14 10:13

I want to make HTTPS calls from an HTTP webpage. I hope to solve this problem with Access-Control-Allow-Origin. How can I use it?

2条回答
  •  情歌与酒
    2021-02-14 10:59

    You can't, really. It's the browser preventing it. Security reasons. You can look into cURL. Read this posting: https-request-via-ajax-from-http-page

提交回复
热议问题