简体   繁体   中英

Call web service over HTTP on HTTPS page

I am having problems calling a web service using AJAX via HTTP when it's on an HTTPS page.

Is this a cross-domain/protocol problem? Do I need to do the AJAX call in the same protocol as the page?

Just wondering if it's the same problem as trying to do an HTTPS AJAX call when on an HTTP page, I suspect it is.

Any advice appreciated.

Thanks Duncan

是的,该协议是同一来源策略的一部分

Don't do that. You run a serious risk of someone intercepting and modifying just the HTTP traffic to break your security.

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