mc cors remove
The mc cors remove command removes the Cross-Origin Resource Sharing (CORS) configuration from a bucket.
CORS is a browser security mechanism that controls which web domains can access your object storage from client-side JavaScript. When a web application running on one domain attempts to access objects in AIStor from a different domain, the browser checks CORS policies to determine if the request should be allowed. See the Mozilla CORS documentation for more information.
Syntax
Parameters
ALIAS
Required
The alias of the AIStor or other S3-compatible service.
BUCKET
Required
The name of the bucket from which to remove the CORS configuration.
Global flags
This command supports any of the global flags.
Examples
Remove CORS configuration from a bucket
Use mc cors remove to delete the bucket-specific CORS configuration:
mc cors remove myaistor/mybucket
- Replace
myaistorwith thealiasof a configured S3-compatible host. - Replace
mybucketwith the name of the bucket.
Behavior
S3 compatibility
The mc command-line tool is built for compatibility with the AWS S3 API and is tested with AIStor and AWS S3 for expected functionality and behavior.
MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported.
While mc commands may work as documented, any such usage is at your own risk.
Fallback to global CORS
After removing the bucket-specific CORS configuration, the bucket falls back to global CORS settings.