Skip to content

Commit

Permalink
Merge pull request #33252 from vpavic
Browse files Browse the repository at this point in the history
* gh-33252:
  Fix Spring Security filter dispatcher types related docs

Closes gh-33252
  • Loading branch information
wilkinsona committed Nov 18, 2022
2 parents 22b054d + ca72f32 commit ffd1e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -2722,6 +2722,8 @@
"defaultValue": [
"async",
"error",
"forward",
"include",
"request"
]
},
Expand Down
Expand Up @@ -397,9 +397,6 @@ The error page filter can only forward the request to the correct error page if
By default, WebSphere Application Server 8.0 and later commits the response upon successful completion of a servlet's service method.
You should disable this behavior by setting `com.ibm.ws.webcontainer.invokeFlushAfterService` to `false`.

If you are using Spring Security and want to access the principal in an error page, you must configure Spring Security's filter to be invoked on error dispatches.
To do so, set the `spring.security.filter.dispatcher-types` property to `async, error, forward, request`.



[[web.servlet.spring-mvc.cors]]
Expand Down

0 comments on commit ffd1e85

Please sign in to comment.