Skip to content

Commit

Permalink
Fix: H2 관련 설정 삭제 (#9)
Browse files Browse the repository at this point in the history
* Test: 테스트용 application.yml 파일 추가

* Feat: Dockerfile 작성

* Refactor: AI 요구사항에 맞게 코드 수정

* Fix: H2 관련 설정 삭제
  • Loading branch information
pjh5365 authored Nov 15, 2024
1 parent 31527d1 commit 28ce6cd
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests(auth -> auth
.requestMatchers("/", "/api/join", "/api/login").permitAll()
// h2 허용
.requestMatchers(PathRequest.toH2Console()).permitAll()
.anyRequest().authenticated()
)
// h2 허용
.headers(headers -> headers.frameOptions(HeadersConfigurer.FrameOptionsConfig::sameOrigin));
);
http
.csrf(AbstractHttpConfigurer::disable)
.formLogin(AbstractHttpConfigurer::disable)
Expand Down

0 comments on commit 28ce6cd

Please sign in to comment.