来自 HTTP 页面的 AJAX HTTPS 请求 [英] HTTPS request via AJAX from HTTP page

查看:35
本文介绍了来自 HTTP 页面的 AJAX HTTPS 请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过 AJAX 从标准 HTTP 页面调用 HTTPS 页面(例如信用卡授权服务,即 WorldPay)会不会有任何问题?

Would there be any problems calling an HTTPS page (e.g. a credit card authorisation service i.e. WorldPay) from a standard HTTP page via AJAX?

我无法想象为什么会出现问题,响应将是一个 HTML 页面,然后我可以将其嵌入到结果窗格等中?

I can't imagine why there would be a problem, the response would be an HTML page which I could then embed in a result pane or such like?

推荐答案

是的,这将是跨域发布,会被浏览器阻止.

Yes this would be a Cross domain posting and would be blocked by the browser.

这篇关于来自 HTTP 页面的 AJAX HTTPS 请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆