WCF-Xtensions Class Reference for .NET
Origin Property (WebSocketTransportBindingElement)






Gets and sets the string identifying the origin of the client connection.
Syntax
public System.string Origin {get; set;}
public read-write property Origin: System.String; 
public function get,set Origin : System.String
public: __property System.string* get_Origin();
public: __property void set_Origin( 
   System.string* value
);
public:
property System.String^ Origin {
   System.String^ get();
   void set (    System.String^ value);
}
'Declaration
 
Public Property Origin As System.String
 
'Usage
 
Dim instance As WebSocketTransportBindingElement
Dim value As System.String
 
instance.Origin = value
 
value = instance.Origin
Remarks
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.

Requirements

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

See Also

Reference

WebSocketTransportBindingElement Class
WebSocketTransportBindingElement Members

Send Feedback