Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit 00a3ea7

Browse files
authored
Merge pull request #70 from CKOLBo/fix/sockjs
OPTION 요청 스킵
2 parents 4dfd304 + 0e504b8 commit 00a3ea7

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/main/java/com/team/cklob/gami/global/filter/JwtFilter.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ protected void doFilterInternal(
3737
FilterChain filterChain
3838
) throws ServletException, IOException {
3939

40+
if ("OPTIONS".equalsIgnoreCase(request.getMethod())) {
41+
filterChain.doFilter(request, response);
42+
return;
43+
}
44+
4045
String jwt = tokenParser.resolveToken(request);
4146

4247
if (StringUtils.hasText(jwt) && jwtProvider.validateAccessToken(jwt)) {

‎src/main/resources/application.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ app:
5858
env: ${APP_ENV:local}
5959

6060
cors:
61-
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}
61+
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}
6262

6363
cloud:
6464
aws:

0 commit comments

Comments
 (0)