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)) { 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: