Share via


CorsOptions Class

Contains the options used by the CorsMiddleware

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Cors.CorsOptions

Namespace:  Microsoft.Owin.Cors
Assembly:  Microsoft.Owin.Cors (in Microsoft.Owin.Cors.dll)

Syntax

'Declaration
Public Class CorsOptions
'Usage
Dim instance As CorsOptions
public class CorsOptions
public ref class CorsOptions
type CorsOptions =  class end
public class CorsOptions

The CorsOptions type exposes the following members.

Constructors

  Name Description
Public method CorsOptions

Top

Properties

  Name Description
Public propertyStatic member AllowAll A policy that allows all headers, all methods, any origin and supports credentials
Public property CorsEngine The cors engine
Public property PolicyProvider The cors policy to apply

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Owin.Cors Namespace