Skip to content

Commit

Permalink
[feat] 로그인 토큰 달았으므로 /ws-stomp 경로 접근 허용 해제
Browse files Browse the repository at this point in the history
  • Loading branch information
khee2 committed Jun 7, 2024
1 parent 629d1f4 commit e7ac2f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.exceptionHandling(exception -> exception
.authenticationEntryPoint(new HttpStatusEntryPoint(HttpStatus.UNAUTHORIZED))) // 인증 실패시 HTTP 401 반환
.authorizeHttpRequests(auth -> auth
.requestMatchers("/", "/api/auth/**", "/swagger-ui/**", "/v3/api-docs/**", "/s3/test", "/ws-stomp/**").permitAll() // 특정 경로에 대한 접근 허용
.requestMatchers("/", "/api/auth/**", "/swagger-ui/**", "/v3/api-docs/**", "/s3/test").permitAll() // 특정 경로에 대한 접근 허용
// .requestMatchers(HttpMethod.GET,"/api/v2/posts/{postId}").permitAll() // GET 요청 허용
.anyRequest().authenticated()) // 나머지 요청은 인증 필요
//.formLogin(form -> form
Expand Down

0 comments on commit e7ac2f0

Please sign in to comment.