Noemax.WCFX.Configuration Namespace > WebSocketTransportElement Class : Origin Property |
Servers that are not intended to process input from any web page but only for certain sites SHOULD verify the |Origin| field is an origin they expect. If the origin indicated is unacceptable to the server, then client connection is not accepted and handshake is terminated.
When this property is set on the client side, the Origin header is sent to the remote endpoint during the handshake.
When this property is set on the server side, server requires specified Origin header value to be provided by the client during the handshake or otherwise refuse to accept the client handshake.
Default value of this property is String.Empty, when String.Empty, 'Sec-WebSocket-Protocol' header is not exchanged and not required during the handshake.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2