Before You Start
Due to browser limitations, configure CORS for buckets before calling bucket-related APIs as follows:
- Set AllowedOrigin to *.
- Set AllowedMethod to PUT, GET, POST, DELETE, HEAD.
- Set AllowedHeader to *.
- Set ExposeHeader to:
- ETag
- x-obs-request-id
- x-obs-id-2
- x-reserved-indicator
- x-obs-api
- x-obs-bucket-location
- x-obs-version
- x-obs-storage-class
- x-default-storage-class
Bucket-related API functions of ObsClient are case insensitive. For example, ObsClient.getBucketLocation and ObsClient.GetBucketLocation indicate the same function.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot