getBucketCORS method
GET Bucket cors 请求用于查询存储桶的跨域资源共享(CORS)访问控制。
bucketName
region
Implementation
Future<COSCORSConfiguration> getBucketCORS({
String? bucketName,
String? region,
}) async {
final Response response =
await client.get('${getBaseApiUrl(bucketName, region)}/?cors');
return toXml<COSCORSConfiguration>(response)(COSCORSConfiguration.fromXml);
}