简体   繁体   中英

How to make a jQuery http -> https AJAX request

I know this has been discussed many times so far, but I can't make it work :/ what am I doing wrong? Target page, when opened standalone, works correctly. Take a look at the screenshot:

在此处输入图片说明

Blurred IP is the same everywhere Response is empty

You are falling foul of the Same Origin Policy .

If you must cross domains (which going from HTTP -> HTTPS is counted as) you need to make a JSONP request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM