mc cors get
Returns the Cross-Origin Resource Sharing (CORS) configuration information for a bucket.
Syntax
- CLI
-
USAGE: mc cors get ALIAS/BUCKET mc cors get-json ALIAS/BUCKET FLAGS: --json enable JSON lines formatted output --debug enable debug output --insecure disable SSL certificate verification --help, -h show help
Parameters
Parameter | Description |
---|---|
json |
Enable JSON formatted output. |
debug |
Enable output for debugging. |
insecure |
Disable SSL verification. |
help |
Show this help. |
Examples
-
Set the CORS configuration information for the bucket named
mybucket
with aliasmyminio
:- CLI
-
mc cors get myminio/mybucket
<CORSConfiguration> <CORSRule> <AllowedOrigin>https://localhost:8000</AllowedOrigin> <AllowedHeader>Authorization</AllowedHeader> <AllowedHeader>User-Agent</AllowedHeader> <AllowedHeader>SHA256</AllowedHeader> <AllowedHeader>X-Mapr-Account</AllowedHeader> <AllowedHeader>X-Amz-Date</AllowedHeader> <AllowedMethod>GET</AllowedMethod> <MaxAgeSeconds>3000</MaxAgeSeconds> <ExposeHeader>X-Amz-Server-Side-Encryption</ExposeHeader> <ExposeHeader>x-amz-request-id</ExposeHeader> </CORSRule> </CORSConfiguration>