Skip to content

Commit

Permalink
Merge pull request #95 from TeamSobokSobok/develop
Browse files Browse the repository at this point in the history
[Hotfix]: 배포 환경에 H2 코드 주석처리
  • Loading branch information
dev-Crayon authored Feb 28, 2024
2 parents 1a141bf + 5cd1708 commit 993af0d
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 993af0d

Please sign in to comment.