Click or drag to resize

DavEngineAsyncCorsAllowedFor Property

IT Hit WebDAV Classes Reference
Enables or disables CORS.

Namespace:  ITHit.WebDAV.Server
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 7.1.4620
Syntax
public string CorsAllowedFor { get; set; }

Property Value

Type: String
Domain for which CORS is enabled. Null or empty string if CORS is disabled. Default is * - CORS is enabled for all domains.
Remarks

If this property is set to * CORS will be enabled for in all domains. In this case, if the Origin request header is available the Engine will extract the value of the Origin header and set the Access-Control-Allow-Origin header to the value of the Origin header. If Origin header is not available the Access-Control-Allow-Origin header will be set to '*'.

To enable CORS for a specific domain set this property to the name of the of the domain. To disable CORS set this property to null or empty string.

If CORS is enabled Access-Control headers are included in all responses.

See Also