Side navigation
#8970 closed bug (wontfix)
Opened April 25, 2011 04:54PM UTC
Closed April 27, 2011 10:39AM UTC
Last modified March 14, 2012 05:36AM UTC
Ajax request across domain bug for IE since jQuery 1.5 (New)
Reported by: | Johnny Xie <ardpx69@gmail.com> | Owned by: | jaubourg |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | ajax | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
My ticket is set to invalid by accident, so I post it again. Please read the ticket content first rather than read the comments by other irrelavant people.
Hey, I am using .ajax() to retrieve or post data across domain. I don't want to use jsonp because the client browsers are all IE8 and I am able to enable 'Access data sources across domain' in IE options for every workstation. The really wield thing is when I use jQuery 1.4.x (1.4.1-1.4.4), the ajax request across domain works very well. However, when I try using jQuery 1.5/1.5.1/1.5.2, the ajax request is forbidden by IE. Please help solve the problem for me. Many thanks.
My ajax request is quite plain as follows, $.ajax({
type: 'get', url: url, dataType: 'json', success: function (msg) {
alert(JSON.stringify(msg));
}
});
Attachments (0)
Change History (3)
Changed April 27, 2011 02:26AM UTC by comment:1
component: | unfiled → ajax |
---|---|
owner: | → jaubourg |
priority: | undecided → low |
status: | new → assigned |
Changed April 27, 2011 10:39AM UTC by comment:2
resolution: | → wontfix |
---|---|
status: | assigned → closed |
Set jquery.support.cors to true and it'll work.
Sorry about the mess-up regarding your previous ticket ><
Changed April 27, 2011 04:48PM UTC by comment:3
haha never mind, it works now. Thanks a lot!
Replying to [comment:2 jaubourg]:
Set jquery.support.cors to true and it'll work. Sorry about the mess-up regarding your previous ticket ><
@jaubourg
It seems the last ticket was closed in error, I'm digging through old ajax module code to find some answers, but I think you're better suited to the task then I am.