Skip to content

Commit

Permalink
[Hotfix]: 배포 환경에 H2 코드 주석처리
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Crayon committed Feb 28, 2024
1 parent fea0ec9 commit 5cd1708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/sobok/SobokSobok/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import io.sobok.SobokSobok.security.filter.JwtCustomFilter;
import io.sobok.SobokSobok.security.jwt.JwtProvider;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.autoconfigure.security.servlet.PathRequest;
//import org.springframework.boot.autoconfigure.security.servlet.PathRequest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
Expand Down Expand Up @@ -50,7 +50,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.headers(header -> header.frameOptions(HeadersConfigurer.FrameOptionsConfig::sameOrigin))
.formLogin(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(request -> request
.requestMatchers(PathRequest.toH2Console()).permitAll()
// .requestMatchers(PathRequest.toH2Console()).permitAll()
.requestMatchers(
Stream
.of(WHITE_LIST)
Expand Down

0 comments on commit 5cd1708

Please sign in to comment.