SrpingSecurity設(shè)置access-denied-page在IE下總是產(chǎn)生403錯(cuò)誤
<http auto-config="true" access-denied-page="/accessDenied.jsp">...</http>,如果請(qǐng)求的URL沒(méi)有權(quán)限,頁(yè)面會(huì)跳轉(zhuǎn)到accessDenied.jsp,可是在IE里面測(cè)試總是產(chǎn)生403錯(cuò)誤。一直懷疑是security框架沒(méi)有跳轉(zhuǎn)accessDenied.jsp,后來(lái)偶然在國(guó)外網(wǎng)站上看來(lái)有人遇到類似的問(wèn)題,最后解決方法是IE對(duì)自定義403的頁(yè)面有個(gè)頁(yè)面大小限制,必須超過(guò)512字節(jié),如果沒(méi)有超過(guò)IE會(huì)認(rèn)為你自定義的403頁(yè)面不夠權(quán)威,Internet Explorer會(huì)使用其自帶的403頁(yè)面代替。[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.
As it can be manipulated on the server if
to send messages more than 512 byte.
posted on 2011-05-26 17:31 牛浪de流 閱讀(1169) 評(píng)論(1) 編輯 收藏 所屬分類: WebDevelop