Allow public image files in auth filter
All checks were successful
build-and-deploy / build-deploy (push) Successful in 27s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 27s
This commit is contained in:
@@ -22,7 +22,10 @@ class FirebaseAuthFilter(
|
||||
|
||||
override fun shouldNotFilter(request: HttpServletRequest): Boolean {
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user