Skip to content

Commit 28ce6cd

Browse files
authored
Fix: H2 관련 설정 삭제 (#9)
* Test: 테스트용 application.yml 파일 추가 * Feat: Dockerfile 작성 * Refactor: AI 요구사항에 맞게 코드 수정 * Fix: H2 관련 설정 삭제
1 parent 31527d1 commit 28ce6cd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/workplate/workplateserver/config/SecurityConfig.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4646
http
4747
.authorizeHttpRequests(auth -> auth
4848
.requestMatchers("/", "/api/join", "/api/login").permitAll()
49-
// h2 허용
50-
.requestMatchers(PathRequest.toH2Console()).permitAll()
5149
.anyRequest().authenticated()
52-
)
53-
// h2 허용
54-
.headers(headers -> headers.frameOptions(HeadersConfigurer.FrameOptionsConfig::sameOrigin));
50+
);
5551
http
5652
.csrf(AbstractHttpConfigurer::disable)
5753
.formLogin(AbstractHttpConfigurer::disable)

0 commit comments

Comments
 (0)