需要一种变通方法在IE7跨域AJAX后 [英] Need a workaround for cross domain ajax post in IE7

查看:451
本文介绍了需要一种变通方法在IE7跨域AJAX后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那么IE7不支持CORS(跨起源资源共​​享)。但是,由于我的应用程序的性质,我不得不做出一个跨域ajax的职位。有没有办法让这个在IE7的工作?不幸的是,我不能使用出于安全考虑,服务器端代理。也许使用iframe?

So IE7 does not support CORS (cross origin resource sharing). However, due to nature of my app, I have to make a cross domain ajax post. Is there some way to get this to work in IE7? Unfortunately, I cannot use a server side proxy for security reasons. Perhaps using an iFrame?

我忘了提,但我控制的其他服务器也。

I forgot to mention, but I control the other server also.

推荐答案

被开发的易XDM库解决了跨起源问题:

The Easy XDM library was developed to solve the cross origin problem :

easyXDM是一个JavaScript库,使您作为开发人员可以轻松地解决此限制,通过同源策略设置到位,进而使得它容易沟通和跨域边界暴露的JavaScript API的。

easyXDM is a Javascript library that enables you as a developer to easily work around the limitation set in place by the Same Origin Policy, in turn making it easy to communicate and expose javascript API’s across domain boundaries.

我没有使用它,但我们可能要尝试解决一个HTTP / HTTPS Ajax调用问题...

I didn't use it yet, but we might have to try it to solve a Http / HTTPS Ajax call problem...

希望有所帮助。

的利益,其他线程:

  • Ajax http / https problem
  • AJAX, Subdomains, and SSL

这篇关于需要一种变通方法在IE7跨域AJAX后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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