OCI ObjectStorage-如何为存储桶启用CORS?

时间:2018-12-12 01:48:49

标签: oracle cors object-storage oracle-cloud-infrastructure

在确定如何在对象存储桶中启用CORS(https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)时,我需要帮助吗?

1 个答案:

答案 0 :(得分:1)

目前,已为OCI ObjectStorage本机和Swift API启用了跨域资源共享。

➜  ~ git:(master) ✗ curl -I https://objectstorage.us-phoenix-1.oraclecloud.com
HTTP/1.1 404 Not Found
Date: Wed, 12 Dec 2018 01:52:00 GMT
Connection: keep-alive
opc-request-id: 286901e2-4180-812c-2779-18b415009904
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST,PUT,GET,HEAD,DELETE,OPTIONS
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Access-Control-Allow-Credentials,Access-Control-Allow-Methods,Access-Control-Allow-Origin,Connection,opc-client-info,opc-request-id