Skip to main content

Bug Tracker

Side navigation

#11003 closed bug (invalid)

Opened December 12, 2011 06:25PM UTC

Closed December 12, 2011 10:14PM UTC

Last modified January 31, 2013 07:23PM UTC

Authorization $.ajax issue (maybe with CORS)

Reported by: siegerstein Owned by: siegerstein
Priority: low Milestone: None
Component: ajax Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description
$.ajax({
  url: "http://www.google.com.ua",
  dataType: "json",
  username: "admin",
  password: "123"
});

try this code, and you will find an error, and no call to server at all:

[Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"

but comment authorization lines, and it works (assume we have CORS enabled)

$.ajax({
  url: "http://www.google.com.ua",
  dataType: "json"
});

and we can see, that jquery sends a call to server.

Attachments (0)
Change History (5)

Changed December 12, 2011 06:57PM UTC by timmywil comment:1

component: unfiledajax
owner: → siegerstein
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case to help us assess your ticket.

Additionally, be sure to test against the jQuery Git version to ensure the issue still exists.

Changed December 12, 2011 09:13PM UTC by anonymous comment:2

FB issue. Please close it.

Changed December 12, 2011 10:14PM UTC by ajpiano comment:3

resolution: → invalid
status: pendingclosed

Closing per OP's request

Changed January 31, 2013 07:18PM UTC by m.shumov@gmail.com comment:4

Replying to [comment:3 ajpiano]:

Closing per OP's request

What is the resolution if you don't mind me asking? I'm having the same issue and the most right place where the answer can be get says "FB issue, resolution: invalid"

Can you please explain what is causing this issue?

Changed January 31, 2013 07:23PM UTC by m.shumov@gmail.com comment:5

Replying to [comment:4 m.shumov@…]:

Replying to [comment:3 ajpiano]: > Closing per OP's request What is the resolution if you don't mind me asking? I'm having the same issue and the most right place where the answer can be get says "FB issue, resolution: invalid" Can you please explain what is causing this issue?

Issue explanation: http://jquery-howto.blogspot.ca/2009/04/cross-domain-ajax-querying-with-jquery.html