From 8f31697641b70540203bd4bddc4549ce21b54945 Mon Sep 17 00:00:00 2001 From: baesunyoung6767 Date: Sun, 30 Jun 2024 19:44:04 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20config=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sunjoo/auth/global/config/WebConfig.class | Bin 1282 -> 1498 bytes build/resources/main/application.yml | 8 +++----- .../sunjoo/auth/global/config/WebConfig.java | 5 ++++- src/main/resources/application.yml | 6 +++--- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/build/classes/java/main/com/sunjoo/auth/global/config/WebConfig.class b/build/classes/java/main/com/sunjoo/auth/global/config/WebConfig.class index 039c9b370fd36a673cd630720eb7394b23bb8eb4..d8d19cf6408ba5d001badd37bca98bde28ffecb6 100644 GIT binary patch delta 368 zcmX|*%Sr-a7>1vJ98;$8NJ+G4)xk_F51q5p=s+!7NbLq3ND?R1C?p8FfrweO?G_|( z5!3~A30+L|%_ME!@BRM&J$#SG_o(sp^Zp5xsrHSCc4aWejL9q$im26WI=6QH*tY6+ zyAvj@h*WO6mrlFUv$_qZ<*73!3%=UEyLLMNYVRv&vdEGm?g#C+?YiCSHmqhxag@Gr zpVUDhMBbg$vU*Wbb)Qw??OuCTgNz84+`OJDuE?9WL6}uR)8|3fSeH$) z!KQdh!e7Lv$vky?dhS90Aa))|Ce8*-5BZ$%d3`{())$$E7d=Ht&?H8L3{k0wQ6E+(##R?P$s?kdW=4Q^sIhJ?VBInNp$V(Q*1spkCi4(K5x zhOO3Ez|sliShAB+pV^b-mCJN~I@XjDzCMH^hKLbyV!%S&P9?wie~LxEH75(EwV?3> NWs4OyWPisN_yR9P6%hac diff --git a/build/resources/main/application.yml b/build/resources/main/application.yml index 5bd01e7..5a6e60d 100644 --- a/build/resources/main/application.yml +++ b/build/resources/main/application.yml @@ -10,10 +10,10 @@ spring: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://sunjoo-user.clau8wyu484y.ap-northeast-2.rds.amazonaws.com:3306/sunjoo?serverTimezone=Asia/Seoul&characterEncoding=UTF-8 username: root - password: user0606 + password: sunjoo-user0628 data: redis: - host: sunjoo-server-auth-redis-1 + host: localhost port: 6379 profiles: include: jwt @@ -21,7 +21,7 @@ spring: host: smtp.naver.com port: 465 username: tjsdudqo1234@naver.com - password: qotjsdud0607! + password: properties: mail: smtp: @@ -50,5 +50,3 @@ eureka: service-url: defaultZone: http://localhost:8761/ -# SMTP - diff --git a/src/main/java/com/sunjoo/auth/global/config/WebConfig.java b/src/main/java/com/sunjoo/auth/global/config/WebConfig.java index 799918d..e98b719 100644 --- a/src/main/java/com/sunjoo/auth/global/config/WebConfig.java +++ b/src/main/java/com/sunjoo/auth/global/config/WebConfig.java @@ -11,6 +11,9 @@ public class WebConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("*") - .allowedMethods("GET", "POST", "PUT", "DELETE"); + .allowedMethods("GET", "POST", "PUT", "DELETE") + .allowedHeaders("*") + .exposedHeaders("Authorization") + .allowCredentials(true); } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 8613984..5a6e60d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -10,7 +10,7 @@ spring: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://sunjoo-user.clau8wyu484y.ap-northeast-2.rds.amazonaws.com:3306/sunjoo?serverTimezone=Asia/Seoul&characterEncoding=UTF-8 username: root - password: user0606 + password: sunjoo-user0628 data: redis: host: localhost @@ -21,7 +21,7 @@ spring: host: smtp.naver.com port: 465 username: tjsdudqo1234@naver.com - password: + password: properties: mail: smtp: @@ -48,5 +48,5 @@ eureka: register-with-eureka: true fetch-registry: true service-url: - defaultZone: http://sunjoo-server-eureka-eureka-1:8761/eureka/ + defaultZone: http://localhost:8761/