[Developer] #424 namespace MCP SSE services by context path

This commit is contained in:
devmrko
2026-06-25 15:27:41 +09:00
parent 28383b952d
commit c8e1bcef42
4 changed files with 76 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ public class SecurityConfig {
@Bean
SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
return http
.csrf(csrf -> csrf.ignoringRequestMatchers("/mcp/messages"))
.csrf(csrf -> csrf.ignoringRequestMatchers("/mcp/messages", "/mcp/*/messages"))
.authorizeHttpRequests(auth -> auth
.requestMatchers("/css/**", "/js/**", "/webjars/**").permitAll()
.anyRequest().authenticated())