Bug Tracker

Opened 12 years ago

Closed 12 years ago

#8649 closed bug (invalid)

$.ajax json does not send authentication on redirects

Reported by: [email protected] Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:


Hi, I have an issue with authentication and redirect.

When I make the original ajax request, the username/password I specify in the ajax parameters are sent correctly. However, on some pages the webserver issues a 302 redirect.

jQuery follows it but then, accessing the redirect destination, it does not send the authentication, and I get prompted with the password.

Is there any known workaround?

Thank you a lot.

Change History (2)

comment:1 Changed 12 years ago by thedayofcondor

Please disregard this - I have just read an interesting discussion about: 1) this not being a jQuery fault 2) how forwarding the credentials to a redirect would be extremely bad practice

I found a workaround - I noticed this happens only once, and only if the first url I access has a redirect.

If I do first a dummy call to a page I am sure it does not have a redirect, and put the rest of the code on the success callback, I do not get prompted for username and password on redirects.

comment:2 Changed 12 years ago by ajpiano

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.