Skip to content

Commit c220d4b

Browse files
authored
fix: 시큐리티에서 /test/api 인증 없이 접근 허용
1 parent 5b14ea7 commit c220d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/example/FixLog/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
3333
.requestMatchers(HttpMethod.GET, "/members/check-nickname").permitAll()
3434
.requestMatchers(HttpMethod.GET, "/h2-console/**").permitAll()
3535
//배포 확인용 임시 수정
36-
.requestMatchers("/main", "/test", "/search").permitAll()
36+
.requestMatchers(HttpMethod.GET, "/test", "/test/**").permitAll()
3737
.anyRequest().authenticated()
3838
)
3939
.headers(headers -> headers.frameOptions(frame -> frame.disable())) // H2 콘솔용

0 commit comments

Comments
 (0)