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);