TooTallNate / Java-WebSocket

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

Origin #1349

Closed FollowerCultBZZ closed 10 months ago

FollowerCultBZZ commented 10 months ago

Is it possible to specify origin using this library?

PhilipRoman commented 10 months 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 10 months 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