sheharyaar commented on issue #10631: URL: https://github.com/apache/apisix/issues/10631#issuecomment-1855149673
Can I know if you are deploying using Docker ? So here is my test setup. I tested by adding a sample echo websocket server and the apisix in the same network with different IPs. I used the following request (adapted from your config) : ``` curl --location --request PUT 'http://127.0.0.1:9180/apisix/admin/routes/1' \ --header 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \ --header 'Content-Type: application/json' \ --data '{ "uri": "/test-websocket/stream", "name": "stream", "methods": [ "GET" ], "plugins": { "proxy-rewrite": { "uri": "/" } }, "labels": { "Test": "Stream" }, "enable_websocket": true, "status": 1, "upstream": { "nodes": [ { "host": "172.18.5.15", "port": 8080, "weight": 1 } ], "timeout": { "connect": 100, "send": 100, "read": 100 }, "type": "roundrobin", "scheme": "http", "pass_host": "pass", "name": "websocket-upstream", "desc": "upstream pointing to websocket.", "keepalive_pool": { "idle_timeout": 60, "requests": 1000, "size": 320 } } }' ``` Even with the authorization header, the websocket works :  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
