Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 442
user2216454 Avatar asked Oct 17 '22 23:10

user2216454


1 Answers

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.

like image 71
Steve Avatar answered Oct 21 '22 07:10

Steve