Blank page after user cancels basic authentication
I did a lot of research into this issue but still haven't found why this is happening. When the user cancels the BASIC auth form in the browser, a blank page appears.
401 page configured in Tomcat webapp, in Firebug I see 401 Unauthorized.
Maybe some header is missing from the response?
Please, help! Thank you very much in advance.
UPDATE I think my post is not informative enough: there is also a combination of BASIC auth along with Spring Kerberos auth, and when a blank page appears, the headers are:
WWW-Authenticate Negotiate Main Realm = "MyRealm"
Enabling Kerberos Authentication in Firefox . Setting options
- network.negotiate-auth.delegation-URIs;
- network.negotiate-auth.trusted-URIs;
to http: // for all http url `
You can try to add the error code setting to yours web.xml
.
<error-page>
<error-code>401</error-code>
<location>/errors/401.jsp</location>
</error-page>
This will allow you to handle the error correctly and offer the user a runaway ...
E.I.V.