Skip to content

Commit

Permalink
fix: API 문서에 접근할 수 없는 현상 해결 (#384)
Browse files Browse the repository at this point in the history
* fix: API 문서에 접근할 수 없는 현상 해결

* style: 신뢰할 수 있는 URL 개행 수정
  • Loading branch information
fromitive authored Aug 19, 2024
1 parent d1ae4b0 commit b590d88
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new AuthorizationInterceptor(cookieConsumer, jwtTokenProvider))
.addPathPatterns("/**")
.excludePathPatterns("/auth/login", "/auth/signup");
.excludePathPatterns(
"/auth/login",
"/auth/signup",
"/swagger-ui/**",
"/swagger-ui.html",
"/v3/api-docs/swagger-config",
"/static/swagger-ui/openapi3.yaml"
);
}
}

0 comments on commit b590d88

Please sign in to comment.