|
|
|
|
|
by franksalim
6024 days ago
|
|
WebSockets have been capable of cross-origin communication since day one. (see: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-...) "The |WebSocket-Origin| header is used in the Web Socket handshake. It is sent from the server to the client to confirm the origin of the script that opened the connection. This enables user agents to verify that the server is willing to serve the script that opened the connection." |
|
This may be part of the specification that I am missing, but it seems to suggest that its using exactly the same origin model as original xhr, which is my complaint
as http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-... suggests
"The Web Socket protocol uses the origin model used by Web browsers to restrict which Web pages can contact a Web Socket server when the Web Socket protocol is used from a Web page."
and http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-...
"The first three lines in each case are hard-coded" (referring to the origin)