CmdID / az / az storage / az storage cors
az storage cors add
Add a CORS rule to a storage account. Azure CLI reference
6 options Its page in the Azure CLI reference
Options
--allowed-headersSpace-separated list of response headers allowed to be part of the cross-origin request.--exposed-headersSpace-separated list of response headers to expose to CORS clients.--max-ageThe maximum number of seconds the client/browser should cache a preflight response.--methodsSpace-separated list of HTTP methods allowed to be executed by the origin.--originsSpace-separated list of origin domains that will be allowed via CORS, or '*' to allow all domains.--servicesThe storage service(s) to add rules to.