通过HTTPS页面的HTTP Ajax请求页面、HTTPS、Ajax、HTTP

2023-09-10 18:22:18 作者:孤独的造梦者

我有一个网站上的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.