acrh
acrh

Reputation: 69

Enable permanently CORS in OVH Object Storage (OpenStack swift)

I can enable CORS in OVH Object Storage (that uses OpenStack Swift) using this command

curl -i -XPUT -H "X-Auth-Token: xxxxxxxxxxx" -H "X-Container-Meta-Access-Control-Allow-Origin: *" https://storage.sbg1.cloud.ovh.net/v1/AUTH_yyyyyyy/repository

and everything works well. But after a period of time (that is completely random) this option is reset. Do you know why and how to solve that?

Upvotes: 6

Views: 2524

Answers (1)

Steve
Steve

Reputation: 75

I discovered the answer to this issue. When you visit your OVH control panel and enter the cloud containers section, their CP resets the CORS. As long as you don't log into and visit this area, your CORS should remain as you have set it.

Upvotes: 3

Related Questions