Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#8970 closed bug (wontfix)

Ajax request across domain bug for IE since jQuery 1.5 (New)

Reported by: Johnny Xie <ardpx69@…> 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));

}

});

Change History (3)

comment:1 Changed 9 years ago by Rick Waldron

Component: unfiledajax
Owner: set to jaubourg
Priority: undecidedlow
Status: newassigned

@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.

comment:2 Changed 9 years ago by jaubourg

Resolution: wontfix
Status: assignedclosed

Set jquery.support.cors to true and it'll work.

Sorry about the mess-up regarding your previous ticket ><

comment:3 in reply to:  2 Changed 9 years ago by anonymous

haha never mind, it works now. Thanks a lot!

Replying to jaubourg:

Set jquery.support.cors to true and it'll work.

Sorry about the mess-up regarding your previous ticket ><

Note: See TracTickets for help on using tickets.