Skip to content

Commit

Permalink
(CodeQL) Fixed finding: "Prevent information leak of stack trace deta…
Browse files Browse the repository at this point in the history
…ils to HTTP responses"
  • Loading branch information
pixee-cc23c971234b2fdd[bot] authored Oct 25, 2024
1 parent 027538d commit 3ebde21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public AjaxAuthenticationEntryPoint(String loginFormUrl) {
@Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException {
if (request.getHeader("x-requested-with") != null) {
response.sendError(401, authException.getMessage());
response.sendError(401);
} else {
super.commence(request, response, authException);
}
Expand Down

0 comments on commit 3ebde21

Please sign in to comment.