Updated on 2025-12-04 GMT+08:00
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, and 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.
Parent topic:Bucket-Related APIs
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot
