angularjs - How to suppress the "Authentication Required" Popup from browser? -
for 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
Post a Comment