IXWebSocket icon indicating copy to clipboard operation
IXWebSocket copied to clipboard

[enhancement] add ability to remove default headers

Open zxsleebu opened this issue 1 year ago • 2 comments

default headers on websocket client connection like "User-Agent" and "Origin" are very annoying. please, add an ability to remove automatic addition of these headers. it would be nice if they could be removed, because in my case if these headers are present, server drops the connection

zxsleebu avatar Mar 31 '24 20:03 zxsleebu

that's what i've done to get ixwebsocket work with riot games webserver. https://github.com/zxsleebu/IXWebSocket/commit/7aa7dcd8d1b9106a76db3f11bd01f7760843fba9

zxsleebu avatar Apr 08 '24 14:04 zxsleebu

Hey would you mind making a PR for that ?

We could drop userAgent, but droping Origin sounds a bit more problematic. We'd need some option for that.

bsergean avatar Apr 30 '24 04:04 bsergean