From aeae5a2783f73776cf9d47701696115f580c1dbb Mon Sep 17 00:00:00 2001 From: Nakji Date: Sun, 2 Mar 2025 21:49:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20guest=20filter=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../swyp8team2/auth/presentation/filter/GuestAuthFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/swyp8team2/auth/presentation/filter/GuestAuthFilter.java b/src/main/java/com/swyp8team2/auth/presentation/filter/GuestAuthFilter.java index a7f6a006..defa35bb 100644 --- a/src/main/java/com/swyp8team2/auth/presentation/filter/GuestAuthFilter.java +++ b/src/main/java/com/swyp8team2/auth/presentation/filter/GuestAuthFilter.java @@ -38,7 +38,8 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse throws ServletException, IOException { try { AntPathMatcher matcher = new AntPathMatcher(); - if (!matcher.match("/posts/{postId}/votes/guest", request.getRequestURI())) { + if (!matcher.match("/posts/{postId}/votes/guest", request.getRequestURI()) && + !matcher.match("/posts/shareUrl/{shareUrl}", request.getRequestURI())) { return; } String token = request.getHeader(CustomHeader.GUEST_TOKEN);