SrpingSecurity设置access-denied-page在IE下总是产生403错误

SrpingSecurity设置access-denied-page在IE下总是产生403错误
<http auto-config="true" access-denied-page="/accessDenied.jsp">...</http>,如果请求的URL没有权限,页面会跳转到accessDenied.jsp,可是在IE里面测试总是产生403错误。一直怀疑是security框架没有跳转accessDenied.jsp,后来偶然在国外网站上看来有人遇到类似的问题,最后解决方法是IE对自定义403的页面有个页面大小限制,必须超过512字节,如果 没有超过IE会认为你自定义的403页面不够权威,Internet Explorer会使用其自带的403页面代替。[Quote] There is it a problem only Internet Explorer. In all remaining browsers all works perfectly.
IE has support so-called user friendly messages which it is possible to disconnect in adjustments.
As it can be manipulated on the server  if 
to send messages more than 512 byte.


你可能感兴趣的:(SrpingSecurity设置access-denied-page在IE下总是产生403错误)