mirror of
https://github.com/stashapp/stash.git
synced 2025-12-15 12:52:38 +01:00
Fix Safari websockets requests (#2128)
This commit is contained in:
parent
920ad1074f
commit
bbe99a0dd8
1 changed files with 5 additions and 0 deletions
|
|
@ -347,6 +347,11 @@ func SecurityHeadersMiddleware(next http.Handler) http.Handler {
|
|||
fn := func(w http.ResponseWriter, r *http.Request) {
|
||||
c := config.GetInstance()
|
||||
connectableOrigins := "connect-src data: 'self'"
|
||||
|
||||
// Workaround Safari bug https://bugs.webkit.org/show_bug.cgi?id=201591
|
||||
// Allows websocket requests to any origin
|
||||
connectableOrigins += " ws: wss:"
|
||||
|
||||
if !c.IsNewSystem() && c.GetHandyKey() != "" {
|
||||
connectableOrigins += " https://www.handyfeeling.com"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue