Allow unauthenticated access to UI assets (#2755)

* Allow unauthenticated access to UI assets
This commit is contained in:
WithoutPants
2022-07-22 17:23:40 +10:00
committed by GitHub
parent b8262f5641
commit e532f9a683
2 changed files with 3 additions and 1 deletions

View File

@@ -26,7 +26,8 @@ const (
)
func allowUnauthenticated(r *http.Request) bool {
return strings.HasPrefix(r.URL.Path, loginEndPoint) || r.URL.Path == "/css"
// #2715 - allow access to UI files
return strings.HasPrefix(r.URL.Path, loginEndPoint) || r.URL.Path == "/css" || strings.HasPrefix(r.URL.Path, "/assets")
}
func authenticateHandler() func(http.Handler) http.Handler {