From 2ba7596fa2588d51526a133a19c977b92577512f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=ED=95=98=EB=AF=BC?= Date: Mon, 29 Dec 2025 09:31:31 +0900 Subject: [PATCH 1/2] =?UTF-8?q?add=20::=20OPTIONS=20=EA=B1=B4=EB=84=88?= =?UTF-8?q?=EB=9C=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/team/cklob/gami/global/filter/JwtFilter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/team/cklob/gami/global/filter/JwtFilter.java b/src/main/java/com/team/cklob/gami/global/filter/JwtFilter.java index abf1b670..cf1b2207 100644 --- a/src/main/java/com/team/cklob/gami/global/filter/JwtFilter.java +++ b/src/main/java/com/team/cklob/gami/global/filter/JwtFilter.java @@ -37,6 +37,11 @@ protected void doFilterInternal( FilterChain filterChain ) throws ServletException, IOException { + if ("OPTIONS".equalsIgnoreCase(request.getMethod())) { + filterChain.doFilter(request, response); + return; + } + String jwt = tokenParser.resolveToken(request); if (StringUtils.hasText(jwt) && jwtProvider.validateAccessToken(jwt)) { From 0e504b8208d17c56e3d10cfac1b0474881f8d320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=ED=95=98=EB=AF=BC?= Date: Mon, 29 Dec 2025 09:32:13 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor=20::=20=EA=B3=B5=EB=B0=B1=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 487e771e..4af53b35 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -58,7 +58,7 @@ app: env: ${APP_ENV:local} cors: - allowed-origins: ${CORS_ALLOWED_ORIGINS:http://localhost:3000,https://port-0-gami-server-mj0rdvda8d11523e.sel3.cloudtype.app, http://localhost:5173, https://cklob-gami.vercel.app} + allowed-origins: ${CORS_ALLOWED_ORIGINS:http://localhost:3000,https://port-0-gami-server-mj0rdvda8d11523e.sel3.cloudtype.app,http://localhost:5173,https://cklob-gami.vercel.app} cloud: aws: