diff --git a/selenium/chrome/devtools/devtools.go b/selenium/chrome/devtools/devtools.go index 68da3f097..11909438f 100644 --- a/selenium/chrome/devtools/devtools.go +++ b/selenium/chrome/devtools/devtools.go @@ -49,6 +49,7 @@ func proxyWebSocket(w http.ResponseWriter, r *http.Request, u *url.URL) { u.Scheme = "http" (&httputil.ReverseProxy{ Director: func(r *http.Request) { + r.Host = "localhost" r.URL = u }, }).ServeHTTP(w, r) @@ -78,6 +79,7 @@ func protocol(w http.ResponseWriter, r *http.Request) { log.Printf("[PROTOCOL] [%s]", u.String()) (&httputil.ReverseProxy{ Director: func(r *http.Request) { + r.Host = "localhost" r.URL = u }, }).ServeHTTP(w, r)