From 9bde19e72a59a2af2dcbc72abf2521fa02718bcc Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 19 Jul 2015 21:13:11 +0200 Subject: [PATCH] skip checkOrigin during websocket handshake Signed-off-by: Tobias Gesellchen --- api/server/container.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/server/container.go b/api/server/container.go index ccd97b6260..df178743f2 100644 --- a/api/server/container.go +++ b/api/server/container.go @@ -528,7 +528,8 @@ func (s *Server) wsContainersAttach(version version.Version, w http.ResponseWrit logrus.Errorf("Error attaching websocket: %s", err) } }) - h.ServeHTTP(w, r) + ws := websocket.Server{Handler: h, Handshake: nil} + ws.ServeHTTP(w, r) return nil }