Opened 8 years ago

Closed 5 years ago

#13228 closed defect (duplicate)

Dojo 1.6.x xhr problem with Safari 5.x

Reported by: Mik Owned by: Bryan Forbes
Priority: blocker Milestone: tbd
Component: IO Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

Ajax cross-domain query. The Server supports CROS and JSONP correctly. On Safari 5.x: "Failed to load resource" (Dojo 1.6.1 uncompressed: Error line 10234 -> line 4041). Same problem with Dojo 1.6.x.

The same request works well on Safari 4.x, Firefox 4.x, Chrome 12.x.

The server responds correctly to this request, the client receives the response (packet logged with CocoaPacketAnalizer?) but it seems that it fails to parse it, giving "Failed to load resource".

dojo.xhrGet({
	url: "http://[SERVER]/api/notebooks/current",
	handleAs: "json",
	load: function(r) {
		alert(r),
	}
});

Server response that is not parsed/loaded:

{"NotebookID": "43f24a32bc"}

Change History (4)

comment:1 Changed 8 years ago by bill

Component: GeneralIO
Description: modified (diff)
Owner: set to James Burke

Hmm, I didn't think cross-domain XHR worked at all.

comment:2 Changed 7 years ago by Colin Snover

Priority: highblocker

Bulk update of open ticket priorities.

comment:3 Changed 7 years ago by bill

Owner: changed from James Burke to Bryan Forbes

Bulk change to reassign IO tickets to Bryan, since he is working on new dojo/request module. Some of these tickets should probably be closed as already fixed, invalid, or wontfix.

comment:4 Changed 5 years ago by dylan

Resolution: duplicate
Status: newclosed

This works with dojo/request. Closing it out.

Note: See TracTickets for help on using tickets.