Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#7282 closed bug (invalid)

IE does not support the Access-Control-Allow-Origin Header declaration

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.5
Component: ajax Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:

Description

$.get() 方法在IE中不支持 Access-Control-Allow-Origin Header声明,

IE中XMLHttpRequest对象是不支持跨域访问的,只有XDomainRequest才支持,所以对于ajax跨域访问问题时,是不兼容IE浏览器的。

Change History (8)

comment:1 follow-up: Changed 6 years ago by caii

哈哈..写成英文会好点吧,中文只有我们自己懂啊! 不过,至少你应该提供一个测试样例...

comment:2 in reply to: ↑ 1 Changed 6 years ago by anonymous

Replying to caii:

哈哈..写成英文会好点吧,中文只有我们自己懂啊! 不过,至少你应该提供一个测试样例...

你给翻译一下吧

comment:3 Changed 6 years ago by jitter

Umm? I can't see/ready any text on bug report and comments???

Version 2, edited 6 years ago by jitter (previous) (next) (diff)

comment:4 Changed 6 years ago by dmethvin

Translation by Google:


$.get () method in IE does not support the Access-Control-Allow-Origin Header declaration

IE, XMLHttpRequest object does not support cross-domain access, and only XDomainRequest is supported, so for ajax cross domain access issue, it is not compatible with IE browser.


comment:5 Changed 6 years ago by dmethvin

  • Summary changed from $.get() 方法在IE中不支持 Access-Control-Allow-Origin Header声明 to IE does not support the Access-Control-Allow-Origin Header declaration

comment:6 Changed 6 years ago by rwaldron

  • Component changed from unfiled to ajax

comment:7 Changed 6 years ago by curiousdannii

Will be fixed by #7195 if/when it gets merged.

comment:8 Changed 6 years ago by snover

  • Resolution set to invalid
  • Status changed from new to closed

We can’t make IE suddenly understand and respect the CORS headers. The best we can do is implement XDomainRequest, which is already due in #7195 and requested in #3342.

Note: See TracTickets for help on using tickets.