Skip to content

Commit

Permalink
Replace dynamic error message with static "Access Denied"
Browse files Browse the repository at this point in the history
Closes spring-projectsgh-16514

Signed-off-by: Daeho Kwon <[email protected]>
  • Loading branch information
kwondh5217 committed Feb 4, 2025
1 parent d1b72ca commit 7037dd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void csrfWhenMutateWithThenDisablesCsrf() {
.expectStatus()
.isEqualTo(HttpStatus.FORBIDDEN)
.expectBody()
.consumeWith((b) -> assertThat(new String(b.getResponseBody())).contains("CSRF"));
.consumeWith((b) -> assertThat(new String(b.getResponseBody())).contains("Access Denied"));
this.client.mutateWith(SecurityMockServerConfigurers.csrf()).post().exchange().expectStatus().isOk();
}

Expand Down

0 comments on commit 7037dd8

Please sign in to comment.