mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 16:38:31 +00:00
Allow blank Origin header
This commit is contained in:
parent
841b6a018d
commit
69e5434cc2
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ var SocketUpgrader = websocket.Upgrader{
|
|||
ReadBufferSize: 1024,
|
||||
WriteBufferSize: 1024,
|
||||
CheckOrigin: func(r *http.Request) bool {
|
||||
return OriginRegexp.MatchString(r.Header.Get("Origin"))
|
||||
return r.Header.Get("Origin") == "" || OriginRegexp.MatchString(r.Header.Get("Origin"))
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue