Skip to content

Commit 6a561ec

Browse files
committed
chore(security): add /health to the security filter
1 parent c919c26 commit 6a561ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/github/renancvitor/inventory/infra/security/SecurityFilter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ protected void doFilterInternal(@NotNull HttpServletRequest request, @NotNull Ht
3434

3535
if ("/login".equals(path)
3636
|| path.startsWith("/swagger-ui")
37-
|| path.startsWith("/v3/api-docs")) {
37+
|| path.startsWith("/v3/api-docs")
38+
|| path.startsWith("/health")
39+
|| path.startsWith("/actuator")) {
3840
filterChain.doFilter(request, response);
3941
return;
4042
}

0 commit comments

Comments
 (0)