通过HTTPS页面的HTTP Ajax请求 [英] HTTP Ajax Request via HTTPS Page

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

问题描述

我有一个网站上的https连接某些页面。从这些https网页,我必须使用的一些错误检索像空字段一个HTTP Ajax请求。但是,此错误消息不来了。有没有什么解决办法,否则我必须做出对HTTPS连接文件Ajax请求。

I am having a site with some pages on https connection. From these Https pages , i have to use a http ajax request for some errors retrieval like blank fields. But This error messages are not coming. Is there any solution to it or i have to make that ajax request to file on https connection .

在此先感谢

推荐答案

这是不可能的,由于同源策略

This is not possible due to the Same Origin Policy.

您将需要切换Ajax请求到https了。

You will need to switch the Ajax requests to https, too.

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

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