I hope that there's anyone that could help me with it as I'm struggling a bit.
Is there any way of getting rid of the prompt whenever response with 401-Not Authorized is returned for an ajax request?
I'm making an ajax call with basic authorization. Everything's fine as long as user gives a correct user-password combination. The problem starts when he/she enters wrong credentials: my xhr.onreadystatechange method is never called, but instead the beautiful system prompt is displayed asking for new credentials. Why is it such a problem? After successful logging in I can't be sure which credentials have been actually used to authorize the user, so I can't store them or even can't use them. Or maybe there's some way of getting the values that were entered into the prompt?
I'd be extremely greatful for any tips.