how can i change websocket request headers Origin,in a

I want to change my websocket request header Origin.But i do not know how to do. it is javascript in browser, it runs in client but not server