From 4fc77fc2fc308e8195faad514722245d20393bb5 Mon Sep 17 00:00:00 2001 From: uni-j-uni Date: Mon, 25 Aug 2025 00:10:53 +0900 Subject: [PATCH 1/4] =?UTF-8?q?:wrench:Settings:=20=ED=81=B4=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EC=96=B8=ED=8A=B8=20CORS=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artium/global/security/OAuth2LoginSuccessHandler.java | 4 ++-- src/main/resources | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/likelion13/artium/global/security/OAuth2LoginSuccessHandler.java b/src/main/java/com/likelion13/artium/global/security/OAuth2LoginSuccessHandler.java index 190be05..f4316d4 100644 --- a/src/main/java/com/likelion13/artium/global/security/OAuth2LoginSuccessHandler.java +++ b/src/main/java/com/likelion13/artium/global/security/OAuth2LoginSuccessHandler.java @@ -78,9 +78,9 @@ public void onAuthenticationSuccess( response.addHeader("Authorization", "Bearer " + tokenResponse.getAccessToken()); if (hasAge && hasGender && hasCode && hasFormat && hasMood && hasTheme) { - response.sendRedirect("http://localhost:5173"); + response.sendRedirect("https://artiums.netlify.app"); } else { - response.sendRedirect("http://localhost:5173/mytype"); + response.sendRedirect("https://artiums.netlify.app/mytype"); } } } diff --git a/src/main/resources b/src/main/resources index f786705..2dc5fd6 160000 --- a/src/main/resources +++ b/src/main/resources @@ -1 +1 @@ -Subproject commit f786705c728dc79ac1899cf207ebbf3665404c79 +Subproject commit 2dc5fd6daf3ad7034082e46040907c24107586fb From 608f0724b5a39601d9228c6ba3cbd2f3c82f5fb5 Mon Sep 17 00:00:00 2001 From: uni-j-uni Date: Mon, 25 Aug 2025 00:26:48 +0900 Subject: [PATCH 2/4] =?UTF-8?q?:wrench:Settings:=20=EC=BF=A0=ED=82=A4=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/likelion13/artium/global/jwt/JwtProvider.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/likelion13/artium/global/jwt/JwtProvider.java b/src/main/java/com/likelion13/artium/global/jwt/JwtProvider.java index e049e8c..cb76a28 100644 --- a/src/main/java/com/likelion13/artium/global/jwt/JwtProvider.java +++ b/src/main/java/com/likelion13/artium/global/jwt/JwtProvider.java @@ -334,6 +334,7 @@ public void deleteRefreshToken(String username) { */ public void addJwtToCookie(HttpServletResponse response, String token, String name, long maxAge) { Cookie cookie = new Cookie(name, token); + cookie.setDomain(".artium.life"); cookie.setHttpOnly(true); cookie.setSecure(true); cookie.setPath("/"); From 589e608a105eae7c48fdd6543b44e82fb64c1beb Mon Sep 17 00:00:00 2001 From: Ksieon Date: Mon, 25 Aug 2025 03:00:18 +0900 Subject: [PATCH 3/4] =?UTF-8?q?:recycle:=20Refactor:=20Cors,=20jwt=20URL?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artium/global/security/OAuth2LoginSuccessHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/likelion13/artium/global/security/OAuth2LoginSuccessHandler.java b/src/main/java/com/likelion13/artium/global/security/OAuth2LoginSuccessHandler.java index 607f68d..71562ab 100644 --- a/src/main/java/com/likelion13/artium/global/security/OAuth2LoginSuccessHandler.java +++ b/src/main/java/com/likelion13/artium/global/security/OAuth2LoginSuccessHandler.java @@ -80,7 +80,7 @@ public void onAuthenticationSuccess( if (hasAge && hasGender && hasCode && hasFormat && hasMood && hasTheme) { response.sendRedirect("https://artium.life"); } else { - response.sendRedirect("https://artiums.life/mytype"); + response.sendRedirect("https://artium.life/mytype"); } } } From c38e97d210899e7bbdb2edb22e9fc154ca7d27b6 Mon Sep 17 00:00:00 2001 From: Ksieon Date: Mon, 25 Aug 2025 03:00:58 +0900 Subject: [PATCH 4/4] =?UTF-8?q?:recycle:=20Refactor:=20Cors,=20jwt=20URL?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources b/src/main/resources index 2dc5fd6..d8dda48 160000 --- a/src/main/resources +++ b/src/main/resources @@ -1 +1 @@ -Subproject commit 2dc5fd6daf3ad7034082e46040907c24107586fb +Subproject commit d8dda48fa0fa24fcc8e6349d01de3f2053a84aa7