Constantly enable CORS in OVH object storage (OpenStack swift)

I can enable CORS in the OVH object store (using 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 certain period of time (completely random), this parameter is reset. Do you know why and how to solve it?

+5
source share
1 answer

I found the answer to this question. When you visit the OVH control panel and enter the cloud container section, their CP resets CORS. Until you enter this area and visit it, your CORS should remain the way you installed it.

+3
source

Source: https://habr.com/ru/post/1258616/


All Articles