spring security的access-denied-page在ie浏览器跳转问题

环境:spring-security-3.2.6 html

自定义了一个403权限被拦截以后跳转的页面,可是在chrome和ie下跳转的页面却不同。 java

chrome下是跳转到了自定义的403页面,可是ie下倒是ie自己的403页面(网站拒绝显示此网页 HTTP 403) spring

spring-security.xml chrome

<!-- 
entry-point-ref=""  未登陆的切入点 
servlet-api-provision="true" 默认启用  保存没有登陆以前的请求   
access-denied-page="" 用户无权限被拦截以后的页面 
-->
<security:http entry-point-ref="marsLoginEntry" servlet-api-provision="true"
    access-denied-page="/error/page403.jsp">
    ...
</security:http>



缘由是,ie对自定义403的页面有个页面大小限制,必须超过512字节,若是小于512字节,ie会使用其自带的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.
api

以上。


参考资料 jsp

http://www.blogjava.net/mac521/archive/2011/05/26/351116.html
网站

相关文章
相关标签/搜索