mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
Allow unauthenticated access to UI assets (#2755)
* Allow unauthenticated access to UI assets
This commit is contained in:
parent
b8262f5641
commit
e532f9a683
2 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue