AJAX从HTTPS网页请求到HTTP网址 [英] AJAX Request From HTTPS Page to HTTP Url

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

问题描述

我有一个案例,我需要执行从HTTPS页面到另一个(在不同的域),不安全的AJAX请求。我们已经实现CORS策略,它在我们的网站上使用HTTPS之前工作正常。有没有办法使这项工作?

I have a case where I need to perform an AJAX request from an HTTPS page to another one (on a different domain) that is not secure. We've already implemented CORS policy and it was working fine before using HTTPS on our website. Is there any way to make this work?

推荐答案

根据W3,不可能通过COR政策,由于证书错误
http://www.w3.org/TR/access-control/ #user-agent-security

According to W3, it's not possible through a COR policy due to "certificate errors" http://www.w3.org/TR/access-control/#user-agent-security

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

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