angularjs - How to suppress the "Authentication Required" Popup from browser? -


enter image description herefor invalid credentials getting "authentication required" popup. how suppress popup , let application handle 401 error case?

if you're using php.

depending on how end set, check if have:

header('www-authenticate: basic realm="my realm"'); header('http/1.0 401 unauthorized'); 

this how should be:

header('http/1.1 401 unauthorized', true, 401); 

see php header() docs.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -