requestMatchers
Specify the matching path patterns for determining when CSP should be applied. The default is to write CSP header in every response if org.springframework.security.config.annotation.web.HeadersDsl.contentSecurityPolicy is configured.
Since
7.2
Parameters
pathPatterns
the path patterns to be matched with a org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher