Allow the use of Browser Bridge

pull/2625/head
Shelikhoo 2020-06-28 15:54:53 +08:00
parent 218d6204b8
commit e4acbcee8f
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ var upgrader = &websocket.Upgrader{
ReadBufferSize: 4 * 1024,
WriteBufferSize: 4 * 1024,
HandshakeTimeout: time.Second * 4,
CheckOrigin: func(r *http.Request) bool {
return true
},
}
func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {