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.
Namespace: Amazon.ApiGatewayV2.Model
Assembly: AWSSDK.ApiGatewayV2.dll
Version: 3.x.y.z
public class Cors
The Cors type exposes the following members
Name | Description | |
---|---|---|
Cors() |
Name | Type | Description | |
---|---|---|---|
AllowCredentials | System.Boolean |
Gets and sets the property AllowCredentials. Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs. |
|
AllowHeaders | System.Collections.Generic.List<System.String> |
Gets and sets the property AllowHeaders. Represents a collection of allowed headers. Supported only for HTTP APIs. |
|
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. |
|
AllowOrigins | System.Collections.Generic.List<System.String> |
Gets and sets the property AllowOrigins. Represents a collection of allowed origins. Supported only for HTTP APIs. |
|
ExposeHeaders | System.Collections.Generic.List<System.String> |
Gets and sets the property ExposeHeaders. Represents a collection of exposed headers. Supported only for HTTP APIs. |
|
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. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5