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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -26,7 +26,8 @@ const (
) )
func allowUnauthenticated(r *http.Request) bool { 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 { func authenticateHandler() func(http.Handler) http.Handler {

View file

@ -1,3 +1,4 @@
### 🐛 Bug fixes ### 🐛 Bug fixes
* Fix UI crash on session timeout. ([#2755](https://github.com/stashapp/stash/pull/2755))
* Fix incorrect scene metadata being set when video has cover art. ([#2752](https://github.com/stashapp/stash/pull/2752)) * Fix incorrect scene metadata being set when video has cover art. ([#2752](https://github.com/stashapp/stash/pull/2752))
* Fix incorrect image being displayed when first previewing image. ([#2754](https://github.com/stashapp/stash/pull/2754)) * Fix incorrect image being displayed when first previewing image. ([#2754](https://github.com/stashapp/stash/pull/2754))