GetBucketCor constructor
const
GetBucketCor({})
Creates a new GetBucketCor.
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 GetBucketCor({
required this.maxAgeSeconds,
required this.methods,
required this.origins,
required this.responseHeaders,
});