【发布时间】:2013-08-02 11:47:25
【问题描述】:
在 Internet Explorer 中使用 CORS(跨域资源共享)时 - 它是否支持提供授权(即基本授权)?
【问题讨论】:
标签: internet-explorer basic-authentication cors
在 Internet Explorer 中使用 CORS(跨域资源共享)时 - 它是否支持提供授权(即基本授权)?
【问题讨论】:
标签: internet-explorer basic-authentication cors
简短的回答:不。更长的答案:
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)
【讨论】:
src 属性中链接。到目前为止 IE10 和 CORS ...
任何需要使用凭据支持 IE7、8、9 的公共站点,请勿使用 CORS。 Internet 区域“跨域访问数据源”中禁用了功能。只有受信任的区域域才能进行跨域调用。
【讨论】: