Skip to content

Commit 1f8a2db

Browse files
committed
Changed response message to static message in HttpStatusAccessDeniedHandler
Signed-off-by: earlgrey02 <[email protected]>
1 parent 72178d9 commit 1f8a2db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/main/java/org/springframework/security/web/access/HttpStatusAccessDeniedHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public HttpStatusAccessDeniedHandler(HttpStatus httpStatus) {
2121
@Override
2222
public void handle(HttpServletRequest request, HttpServletResponse response,
2323
AccessDeniedException accessDeniedException) throws IOException, ServletException {
24-
response.sendError(this.httpStatus.value(), accessDeniedException.getMessage());
24+
response.sendError(this.httpStatus.value(), "Access Denied");
2525
}
2626

2727
}

0 commit comments

Comments
 (0)