Microsoft.AspNetCore.Cors Extension methods for setting up cross-origin resource sharing services in an . Adds cross-origin resource sharing services to the specified . The to add services to. The so that additional calls can be chained. Adds cross-origin resource sharing services to the specified . The to add services to. An to configure the provided . The so that additional calls can be chained. Creates a new instance of the . The name of the policy to be applied. A strongly-typed resource class, for looking up localized strings, etc. Returns the cached ResourceManager instance used by this class. Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. Looks up a localized string similar to PreflightMaxAge must be greater than or equal to 0.. CORS-related constants. The HTTP method for the CORS preflight request. The Origin request header. The value for the Access-Control-Allow-Origin response header to allow all origins. The Access-Control-Request-Method request header. The Access-Control-Request-Headers request header. The Access-Control-Allow-Origin response header. The Access-Control-Allow-Headers response header. The Access-Control-Expose-Headers response header. The Access-Control-Allow-Methods response header. The Access-Control-Allow-Credentials response header. The Access-Control-Max-Age response header. An ASP.NET middleware for handling CORS. Instantiates a new . The next middleware in the pipeline. An instance of . A policy provider which can get an . An optional name of the policy to be fetched. Instantiates a new . The next middleware in the pipeline. An instance of . An instance of the which can be applied. Provides programmatic configuration for Cors. Adds a new policy. The name of the policy. The policy to be added. Adds a new policy. The name of the policy. A delegate which can use a policy builder to build a policy. Gets the policy based on the The name of the policy to lookup. The if the policy was added.null otherwise. Defines the policy for Cross-Origin requests based on the CORS specifications. Gets a value indicating if all headers are allowed. Gets a value indicating if all methods are allowed. Gets a value indicating if all origins are allowed. Gets the headers that the resource might use and can be exposed. Gets the headers that are supported by the resource. Gets the methods that are supported by the resource. Gets the origins that are allowed to access the resource. Gets or sets the for which the results of a preflight request can be cached. Gets or sets a value indicating whether the resource supports user credentials in the request. Returns a that represents this instance. A that represents this instance. Exposes methods to build a policy. Creates a new instance of the . list of origins which can be added. Creates a new instance of the . The policy which will be used to intialize the builder. Adds the specified to the policy. The origins that are allowed. The current policy builder Adds the specified to the policy. The headers which need to be allowed in the request. The current policy builder Adds the specified to the policy. The headers which need to be exposed to the client. The current policy builder Adds the specified to the policy. The methods which need to be added to the policy. The current policy builder Sets the policy to allow credentials. The current policy builder Sets the policy to not allow credentials. The current policy builder Ensures that the policy allows any origin. The current policy builder Ensures that the policy allows any method. The current policy builder Ensures that the policy allows any header. The current policy builder Sets the preflightMaxAge for the underlying policy. A positive indicating the time a preflight request can be cached. Builds a new using the entries added. The constructed . Combines the given to the existing properties in the builder. The policy which needs to be combined. The current policy builder Results returned by . Gets or sets the allowed origin. Gets or sets a value indicating whether the resource supports user credentials. Gets the allowed methods. Gets the allowed headers. Gets the allowed headers that can be exposed on the response. Gets or sets a value indicating if a 'Vary' header with the value 'Origin' is required. Gets or sets the for which the results of a preflight request can be cached. Returns a that represents this instance. A that represents this instance. Default implementation of . Creates a new instance of the . The option model representing . Looks up a policy using the and then evaluates the policy using the passed in . A which contains the result of policy evaluation and can be used by the caller to set appropriate response headers. Creates a new instance of . The options configured for the application. A type which can provide a for a particular . Gets a from the given The associated with this call. An optional policy name to look for. A A type which can evaluate a policy for a particular . Evaluates the given using the passed in . The associated with the call. The which needs to be evaluated. A which contains the result of policy evaluation and can be used by the caller to set appropriate response headers. Adds CORS-specific response headers to the given . The used to read the allowed values. The associated with the current call. An interface which can be used to identify a type which provides metdata to disable cors for a resource. An interface which can be used to identify a type which provides metadata needed for enabling CORS support. The name of the policy which needs to be applied. The extensions for adding CORS middleware support. Adds a CORS middleware to your web application pipeline to allow cross domain requests. The IApplicationBuilder passed to your Configure method The policy name of a configured policy. The original app parameter Adds a CORS middleware to your web application pipeline to allow cross domain requests. The IApplicationBuilder passed to your Configure method. A delegate which can use a policy builder to build a policy. The original app parameter