Skip to content

Commit 040c404

Browse files
authored
Update SecurityConfig.java
1 parent 2a95858 commit 040c404

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
3030
.csrf(csrf -> csrf.disable())
3131
.cors(Customizer.withDefaults()) // CORS 설정 추가 (WebConfig와 연결됨)
3232
.authorizeHttpRequests(auth -> auth
33-
.requestMatchers("/auth/**").permitAll()
33+
.requestMatchers(HttpMethod.GET, "/auth/**").permitAll()
34+
.requestMatchers(HttpMethod.POST, "/auth/**").permitAll()
3435
.requestMatchers(HttpMethod.GET, "/members/check-email").permitAll()
3536
.requestMatchers(HttpMethod.GET, "/members/check-nickname").permitAll()
3637
.requestMatchers(HttpMethod.GET, "/h2-console/**").permitAll()

0 commit comments

Comments
 (0)