BucketCORS
Returns the CORS (Cross-Origin Resource Sharing) rules configured for a bucket, allowing controlled access to S3 resources from external domains.
View-Specific Information
The driver uses the Amazon S3 API to process filter criteria that reference the Bucket column, and processes all other filters client-side within the driver. This view returns the CORS rules for a single bucket, so each query must include a Bucket filter.
SELECT
The following query is processed server-side:SELECT * FROM BucketCORS WHERE Bucket = 'TestBucket'
Columns
| Name | Type | Description |
| Id | String | An optional identifier that uniquely distinguishes this CORS rule within the bucket's configuration. |
| AllowedOrigin | String | Specifies the origin domains that are permitted to send cross-domain requests to the bucket. |
| AllowedMethod | String | Defines the HTTP methods allowed for the specified origin, such as GET, PUT, POST, and DELETE. |
| MaxAgeSeconds | String | Specifies the number of seconds a browser may cache the results of a preflight OPTIONS request before issuing another one. |
| AllowedHeader | String | Lists the HTTP headers that clients may include in a preflight OPTIONS request. |
| ExposeHeader | String | Specifies the response headers that are exposed to client applications making cross-origin requests. |
| Bucket | String | Specifies the name of the S3 bucket to which this CORS configuration applies. |