From 065b9a71eaba4d742e70b24f3122c1463f1ee19c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A7=80=ED=98=81?= Date: Tue, 19 Nov 2024 18:20:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=93=A0=20=EC=9A=94=EC=B2=AD=20?= =?UTF-8?q?=ED=97=88=EC=9A=A9=20(#15)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Test: 테스트용 application.yml 파일 추가 * Feat: Dockerfile 작성 * Refactor: AI 요구사항에 맞게 코드 수정 * Fix: H2 관련 설정 삭제 * Refactor: 식당 ID를 반환하도록 추가 * Refactor: AI 요구사항에 맞춰 수정 * Refactor: AI 요구사항에 맞도록 수정 * Test: 테스트 코드 수정 * Refactor: 회원 상세정보 필드 추가 * Refactor: 테스트 환경 간 모든 요청 허용 --- .../java/workplate/workplateserver/config/SecurityConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/workplate/workplateserver/config/SecurityConfig.java b/src/main/java/workplate/workplateserver/config/SecurityConfig.java index d50257b..dc081a6 100644 --- a/src/main/java/workplate/workplateserver/config/SecurityConfig.java +++ b/src/main/java/workplate/workplateserver/config/SecurityConfig.java @@ -46,10 +46,11 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests(auth -> auth .requestMatchers("/", "/api/join", "/api/login").permitAll() - .anyRequest().authenticated() + .anyRequest().permitAll() ); http .csrf(AbstractHttpConfigurer::disable) + .cors(AbstractHttpConfigurer::disable) .formLogin(AbstractHttpConfigurer::disable) .httpBasic(AbstractHttpConfigurer::disable) .addFilterAt(loginFilter(), UsernamePasswordAuthenticationFilter.class) // 로그인 필터 변경