TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.
http://tootallnate.github.io/Java-WebSocket
MIT License
10.53k stars 2.58k forks source link

Origin #1349

Closed FollowerCultBZZ closed 1 year ago

FollowerCultBZZ commented 1 year ago

Is it possible to specify origin using this library?

PhilipRoman commented 1 year ago

You can specify any custom HTTP header for client. See example: https://github.com/TooTallNate/Java-WebSocket/blob/master/src/main/example/CustomHeaderClientExample.java

FollowerCultBZZ commented 1 year ago

You can specify any custom HTTP header for client. See example: https://github.com/TooTallNate/Java-WebSocket/blob/master/src/main/example/CustomHeaderClientExample.java

thx