Bug Tracker

Ticket #7282 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

Description

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

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

Change History

comment:1 follow-up: ↓ 2 Changed 4 years ago by caii

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

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

Replying to caii:

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

你给翻译一下吧

comment:3 Changed 4 years ago by jitter

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

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

comment:4 Changed 4 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 4 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 4 years ago by rwaldron

  • Component changed from unfiled to ajax

comment:7 Changed 4 years ago by curiousdannii

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

comment:8 Changed 4 years ago by snover

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

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.