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.
A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.
public class CorsRule
The CorsRule type exposes the following members
Gets and sets the property AllowedHeaders.
Specifies which headers are allowed in a preflight
This element can contain only one wildcard character (*).
Gets and sets the property AllowedMethods.
Identifies an HTTP method that the origin that is specified in the rule is allowed to execute.
Each CORS rule must contain at least one
Gets and sets the property AllowedOrigins.
One or more response headers that you want users to be able to access from their applications
Each CORS rule must have at least one
Gets and sets the property ExposeHeaders.
One or more headers in the response that you want users to be able to access from
This element is optional for each rule.
Gets and sets the property MaxAgeSeconds.
The time in seconds that your browser caches the preflight response for the specified resource.
A CORS rule can have only one
Supported in: 1.3
Supported in: 4.5, 4.0, 3.5
Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms