diff --git a/backend/src/main/java/com/funeat/auth/util/AuthArgumentResolver.java b/backend/src/main/java/com/funeat/auth/util/AuthArgumentResolver.java index 3c32afd6e..74fb8efba 100644 --- a/backend/src/main/java/com/funeat/auth/util/AuthArgumentResolver.java +++ b/backend/src/main/java/com/funeat/auth/util/AuthArgumentResolver.java @@ -23,6 +23,10 @@ public boolean supportsParameter(MethodParameter parameter) { public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) { final HttpServletRequest request = webRequest.getNativeRequest(HttpServletRequest.class); + System.out.println("request.getSession().getAttribute(\"member\"))"+ request.getSession().getAttribute("member")); + System.out.println("request.getHeader(\"Cookie\")"+ request.getHeader("Cookie")); + System.out.println("request.getRequestURL().toString()"+request.getRequestURL().toString()); + final HttpSession session = Objects.requireNonNull(request).getSession(); final String id = String.valueOf(session.getAttribute("member")); diff --git a/backend/src/main/java/com/funeat/common/WebConfig.java b/backend/src/main/java/com/funeat/common/WebConfig.java index 7f49162fb..285b41594 100644 --- a/backend/src/main/java/com/funeat/common/WebConfig.java +++ b/backend/src/main/java/com/funeat/common/WebConfig.java @@ -33,7 +33,7 @@ public void addInterceptors(final InterceptorRegistry registry) { registry.addInterceptor(authHandlerInterceptor) .addPathPatterns("/api/products/*/reviews/*"); registry.addInterceptor(memberHandlerInterceptor) - .addPathPatterns("/api/members/*"); + .addPathPatterns("/api/members"); } @Override