mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Allow unauthenticated access to UI assets (#2755)
* Allow unauthenticated access to UI assets
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user