开发者

Can I change Origin value of a web socket request and how

开发者 https://www.devze.com 2023-03-30 21:16 出处:网络
I start a server on my computer and load a local html file. When i send web socket request to the se开发者_如何学JAVArver and i check client handshake and the sent handshake from the server the Origin

I start a server on my computer and load a local html file. When i send web socket request to the se开发者_如何学JAVArver and i check client handshake and the sent handshake from the server the Origin value is different. Can I manipulate this value or set it from somewhere and how?

Can I change Origin value of a web socket request and how


You can't change the origin value being sent by the browser. This is a security feature that allows cross-origin security. The Sec-WebSocket-Origin you are seeing sent back from the server is a feature of the Hixie 76 version of the protocol that is going away in the more recent protocol versions.

0

精彩评论

暂无评论...
验证码 换一张
取 消