From 2004ee744c6ff2f7cfc5484391c6091cc7d76c0d Mon Sep 17 00:00:00 2001 From: aeeazip Date: Wed, 23 Aug 2023 23:46:53 +0900 Subject: [PATCH] =?UTF-8?q?fix(#125)=20:=20SecurityConfig=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/trothly/trothcam/config/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/trothly/trothcam/config/SecurityConfig.java b/src/main/java/trothly/trothcam/config/SecurityConfig.java index 49b0168..96c5645 100644 --- a/src/main/java/trothly/trothcam/config/SecurityConfig.java +++ b/src/main/java/trothly/trothcam/config/SecurityConfig.java @@ -91,7 +91,7 @@ private CorsConfiguration getDefaultCorsConfiguration() { Arrays.asList("http://localhost:8080", "https://trothly.com", "http://localhost:3000")); configuration.setAllowedHeaders(Arrays.asList("*")); // 모든 header 에 응답을 허용 configuration.setAllowedMethods(Arrays.asList("*")); // 모든 get,post,patch,put,delete 요청 허용 - configuration.setAllowedOrigins(Arrays.asList("*")); // 모든 ip 응답을 허용 + // configuration.setAllowedOrigins(Arrays.asList("*")); // 모든 ip 응답을 허용 configuration.setAllowCredentials(true); // 내 서버가 응답할 때 json 을 자바스크립트에서 처리할 수 있게 할지를 설정하는 것 configuration.setMaxAge(3600L);