Skip to content

Commit 4a5ec86

Browse files
committed
fix: websocket csrf 추가
1 parent bb717e3 commit 4a5ec86

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/src/main/java/com/back/global/config/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
5959
.csrf(csrf -> csrf
6060
.ignoringRequestMatchers("/h2-console/**") // H2 콘솔은 CSRF 제외
6161
.ignoringRequestMatchers("/swagger-ui/**") // Swagger UI는 CSRF 제외
62+
.ignoringRequestMatchers("/ws/**")
6263
.ignoringRequestMatchers("/api/v1/**") // 임시 csrf 제외
6364
)
6465
.headers(headers -> headers

0 commit comments

Comments
 (0)