Hi,

An API I am calling from Angular uses HTTP Basic authentication. When the 
wrong credentials are sent, the API responds with 401 Unauthorized. Firefox 
will then popup a login window, which is annoying to the user, of course. 
The Mozilla docs note that you can set the mozBackgroundRequest property on 
the XHR object to avoid this behavior [1].

I browsed through the code, but I cannot find a way to set the property in 
between xhr.open and xhr.send. Am I missing something?

Would this be a property that $httpBackend could set by default? I see no 
problems with it in other browsers.

Regards,
Joost

[1] 
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#mozBackgroundRequest

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to