8

在 Internet Explorer 中使用 CORS(跨源资源共享)时 - 它是否支持提供授权(即基本授权)?

4

2 回答 2

12

简短的回答:没有。更长的答案:

Internet Explorer 7 及更低版本不支持 CORS

Internet Explorer 8 和 9 通过 XDomainRequest 对象提供有限的 CORS 支持。XDomainRequest 对象不支持自定义标头,因此它不支持Authorization标头。(来源:http: //blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx

即将推出的 Internet Explorer 10 将完全支持 CORS,其中包括对自定义标头(如Authorization. (来源:http: //blogs.msdn.com/b/ie/archive/2012/02/09/cors-for-xhr-in-ie10.aspx

于 2012-09-18T13:53:14.343 回答
0

任何需要使用凭据支持 IE7、8、9 的公共站点,请勿使用 CORS。Internet 区域“跨域访问数据源”中禁用了功能。只有受信任的区域域才能进行跨域调用。

于 2013-08-02T03:47:25.990 回答