用户取消基本认证后的空白页面 [英] Blank page after user cancels basic authentication

查看:414
本文介绍了用户取消基本认证后的空白页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了很多关于这个问题的信息,但仍然没有找到,为什么会发生这种情况。当用户在浏览器中取消BASIC身份验证表单时,会出现空白页面。

I've googled a lot about the problem, but still did not find, why it is happening. When user cancels BASIC auth form in browser, blank page is appeared.

401页面是在Tomcat webapp中设置的,在Firebug中我可以看到401 Unauthorized。

401 page is setup in Tomcat webapp, in Firebug i can see 401 Unauthorized.

回复时可能缺少一些标题?

Maybe some header is missing in response?

请帮助!非常感谢提前。

Please help! Thanks a lot in advance.

UPDATE
我认为,我的帖子不够丰富:还有BASIC auth和Spring Kerberos auth的组合,以及当出现空白页时,标题是:

UPDATE I think, my post is not informative enough: there is also combination of BASIC auth together with Spring Kerberos auth, and when blank page is appeared, headers are:

WWW-Authenticate Negotiate Basic realm =MyRealm

WWW-Authenticate Negotiate Basic realm="MyRealm"

推荐答案

启用Kerberos Firefox中的身份验证。设置参数


  • network.negotiate-auth.delegation-uris;

  • network.negotiate-auth.trusted-uris;

  • network.negotiate-auth.delegation-uris;
  • network.negotiate-auth.trusted-uris;

http:// 所有http网址

这篇关于用户取消基本认证后的空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆