Skip to content

Commit 16a1c89

Browse files
fix: patch 관련 cors 에러 메소드 추가
1 parent 00e0f50 commit 16a1c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/weve/security/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public UrlBasedCorsConfigurationSource corsConfigurationSource() {
4141
CorsConfiguration config = new CorsConfiguration();
4242
config.setAllowCredentials(true);
4343
config.setAllowedOrigins(List.of("http://localhost:3000", "https://gdg-weve.store")); // 클라이언트 URL 추가
44-
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
44+
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
4545
config.setAllowedHeaders(List.of("*"));
4646

4747
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();

0 commit comments

Comments
 (0)