BucketCor constructor

const BucketCor({
  1. Input<int?>? maxAgeSeconds,
  2. Input<List<String>?>? methods,
  3. Input<List<String>?>? origins,
  4. Input<List<String>?>? responseHeaders,
})

Creates a new BucketCor. maxAgeSeconds The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses. methods The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "" is permitted in the list of methods, and means "any method". origins The list of Origins eligible to receive CORS response headers. Note: "" is permitted in the list of origins, and means "any Origin". responseHeaders The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.

Implementation

const BucketCor({
  this.maxAgeSeconds,
  this.methods,
  this.origins,
  this.responseHeaders,
});