Skip to content

Commit c06c0ce

Browse files
authored
Update SecurityConfig.java
1 parent e067e57 commit c06c0ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
3030
.csrf(csrf -> csrf.disable())
3131
.cors(Customizer.withDefaults()) // CORS 설정 추가 (WebConfig와 연결됨)
3232
.authorizeHttpRequests(auth -> auth
33+
.requestMatchers(HttpMethod.GET, "/", "/main", "/main/**").permitAll()
3334
.requestMatchers(HttpMethod.GET, "/auth/**").permitAll()
3435
.requestMatchers(HttpMethod.POST, "/auth/**").permitAll()
3536
.requestMatchers(HttpMethod.POST, "/members/signup").permitAll()
3637
.requestMatchers(HttpMethod.GET, "/members/check-email").permitAll()
3738
.requestMatchers(HttpMethod.GET, "/members/check-nickname").permitAll()
3839
.requestMatchers(HttpMethod.GET, "/h2-console/**").permitAll()
39-
.requestMatchers(HttpMethod.GET, "/main/**").permitAll()
4040
.requestMatchers(HttpMethod.GET, "/test", "/test/**").permitAll() // 테스트용 허용
4141
.anyRequest().authenticated()
4242
)

0 commit comments

Comments
 (0)