jQuery .get for non https, in a userscript

后端 未结 4 1916
一生所求
一生所求 2021-01-15 13:57

I made a script on my website that accesses a table on a different website. However, the other website is HTTP so chrome is telling me \"This request has been blocked; the c

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-15 14:15

    Yeah, both sites must use https, or else it defeats the purpose. Some content is encrypted & some is not. You could potentially send information that should be secured like a credit card number to an unsecured source.

    If you have access to your server code. You can make a route that makes the request to the unsecured http domain. This way all your frontend requests point to the same domain, and the browser is happy as all requests are https.

提交回复
热议问题