Allow public image files in auth filter
All checks were successful
build-and-deploy / build-deploy (push) Successful in 27s

This commit is contained in:
androidlover5842
2026-01-27 17:09:16 +05:30
parent be7ea47d9e
commit 64655b7b30

View File

@@ -22,7 +22,10 @@ class FirebaseAuthFilter(
override fun shouldNotFilter(request: HttpServletRequest): Boolean { override fun shouldNotFilter(request: HttpServletRequest): Boolean {
val path = request.requestURI val path = request.requestURI
return path == "/" || path == "/health" || path.startsWith("/auth/") if (path == "/" || path == "/health" || path.startsWith("/auth/")) {
return true
}
return path.matches(Regex("^/properties/[^/]+/rooms/[^/]+/images/[^/]+/file$"))
} }
override fun doFilterInternal( override fun doFilterInternal(