mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
Prove that 403 errors are handled by web.xml <error-page>.
This commit is contained in:
parent
c7dcceb05c
commit
c64a3770de
@ -99,6 +99,11 @@
|
|||||||
<welcome-file>index.jsp</welcome-file>
|
<welcome-file>index.jsp</welcome-file>
|
||||||
</welcome-file-list>
|
</welcome-file-list>
|
||||||
|
|
||||||
|
<error-page>
|
||||||
|
<error-code>403</error-code>
|
||||||
|
<location>/error.html</location>
|
||||||
|
</error-page>
|
||||||
|
|
||||||
<taglib>
|
<taglib>
|
||||||
<taglib-uri>/spring</taglib-uri>
|
<taglib-uri>/spring</taglib-uri>
|
||||||
<taglib-location>/WEB-INF/spring.tld</taglib-location>
|
<taglib-location>/WEB-INF/spring.tld</taglib-location>
|
||||||
|
5
samples/contacts/src/main/webapp/filter/error.html
Normal file
5
samples/contacts/src/main/webapp/filter/error.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html>
|
||||||
|
<title>Access denied!</title>
|
||||||
|
<h1>Access Denied</h1>
|
||||||
|
We're sorry, but you are not authorized to perform the requested operation.
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user