Skip to content

csrf() should not impact future invocations #4016

@rwinch

Description

@rwinch

Currently if a test invokes:

mockMvc.perform(post("/foo").with(csrf())
    ...

Future invocations of Spring Security's FilterChainProxy are impacted (i.e. the original CsrfTokenRepository is not invoked)

Metadata

Metadata

Assignees

Labels

in: testAn issue in spring-security-testtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions