witoldsz / angular-http-auth

MIT License
2.38k stars 417 forks source link

Doesn't work with WWW-Authenticate header #73

Open panesofglass opened 10 years ago

panesofglass commented 10 years ago

If I submit a WWW-Authenticate header back with the 401 response using Basic authentication, I still see the browser window pop-up. Any idea as to how I could block the browser's pop-up? I need to be able to authenticate users in the browser for other scenarios.

Rykus0 commented 9 years ago

I believe the only way to avoid this is to change the response header from the server-side. So you could change it from WWW-Authenticate Basic ... to WWW-Authenticate xBasic ... or something.

panesofglass commented 9 years ago

@Rykus0, that is what I found, as well. It is unfortunate, since I have other pages on the site I would like to protect in the same way that are not part of the Angular app. So I'm broken in one form or another. :(