SpringBootCustomFilterAppliedToPaths A part of the code in this repository shows a workaround or solution in response to a question raised: Spring Security 6 Custom Filter not getting applied to specific url pattern in https://stackoverflow.com/questions/79585730/spring-security-6-custom-filter-not-getting-applied-to-specific-url-pattern-in