This commit is contained in:
Vincent 2018-04-30 07:43:37 +00:00 committed by GitHub
commit 25e6234026
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http
log.Debug(fmt.Sprintf("Allowed origin(s) for WS RPC interface %v\n", origins.List()))
f := func(cfg *websocket.Config, req *http.Request) error {
origin := strings.ToLower(req.Header.Get("Origin"))
origin := strings.ToLower(req.Header.Get("origin"))
if allowAllOrigins || origins.Has(origin) {
return nil
}