简体   繁体   English

使用开发人员工具测试IE8的CORS兼容性

[英]Testing CORS compatibility for IE8 using developer tools

I've set up a central WebApi site that will provide general CRUD capability for various sites across our domain. 我已经建立了一个中央WebApi网站,该网站将为我们域中的各个网站提供常规的CRUD功能。 I've configured the whole shebang to utilize CORS with the standard jquery ajax httprequest or, in the case of older IE versions, XDomainRequest . 我已经将整个shebang配置为将CORS与标准jquery ajax httprequest或者在较旧的IE版本中,将XDomainRequest与CORS结合使用。 So far, everything checks out, it works splendidly. 到目前为止,所有内容都可以查看,并且效果出色。 My problem is that I can't seem to find a machine with IE8 in order to complete user agent testing. 我的问题是,我似乎无法找到具有IE8的计算机来完成用户代理测试。 The site works wonderfully when I go into the developer tools on IE 11 and set it to emulate IE8 but I'm not ready to pop the champagne cork just yet. 当我进入IE 11上的开发人员工具并将其设置为模拟IE8时,该站点的运行效果非常好,但是我还没有准备好弹出香槟软木塞。

My question is: will the developer tools' IE8 mode fully emulate that browser's behavior, down to the way it handles cross domain requests or do I need to either find a user with IE8 and have them test it or spin up a VM with it? 我的问题是:开发人员工具的IE8模式会完全模拟该浏览器的行为,直至处理跨域请求的方式,还是我需要找到使用IE8的用户并对其进行测试或使用它来启动VM?

您可以从Microsoft的modern.ie网站( http://dev.modern.ie/tools/vms/)下载带有IE8的虚拟机,然后使用该网站测试您的网站。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM