Open
Description
Discussed in #2199
Originally posted by Harish09 June 9, 2022
Using Proxy middleware to proxy requests to a web server to multiple other services. Have configured the transport layer to support TLS for the proxy requests. But websocket TLS (wss://) requests are being proxied as requests without TLS (ws://) due to this code snippet in proxy.go
// Proxy switch { case c.IsWebSocket(): proxyRaw(tgt, c).ServeHTTP(res, req) case req.Header.Get(echo.HeaderAccept) == "text/event-stream": default: proxyHTTP(tgt, c, config).ServeHTTP(res, req) }
Is there a way to supply ProxyConfig to the websocket requests as well, so that the transport layer can be customised for TLS ?
Metadata
Metadata
Assignees
Labels
No labels