AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Represents a CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.

Inheritance Hierarchy

System.Object
  Amazon.ApiGatewayV2.Model.Cors

Namespace: Amazon.ApiGatewayV2.Model
Assembly: AWSSDK.ApiGatewayV2.dll
Version: 3.x.y.z

Syntax

C#
public class Cors

The Cors type exposes the following members

Constructors

NameDescription
Public Method Cors()

Properties

NameTypeDescription
Public Property AllowCredentials System.Boolean

Gets and sets the property AllowCredentials.

Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.

Public Property AllowHeaders System.Collections.Generic.List<System.String>

Gets and sets the property AllowHeaders.

Represents a collection of allowed headers. Supported only for HTTP APIs.

Public Property AllowMethods System.Collections.Generic.List<System.String>

Gets and sets the property AllowMethods.

Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.

Public Property AllowOrigins System.Collections.Generic.List<System.String>

Gets and sets the property AllowOrigins.

Represents a collection of allowed origins. Supported only for HTTP APIs.

Public Property ExposeHeaders System.Collections.Generic.List<System.String>

Gets and sets the property ExposeHeaders.

Represents a collection of exposed headers. Supported only for HTTP APIs.

Public Property MaxAge System.Int32

Gets and sets the property MaxAge.

The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5