Method: Aliyun::OSS::Protocol#delete_bucket_cors
- Defined in:
- lib/aliyun/oss/protocol.rb
#delete_bucket_cors(name) ⇒ Object
Note:
this will delete all CORS rules of this bucket
Delete all bucket CORS rules
575 576 577 578 579 580 581 582 583 |
# File 'lib/aliyun/oss/protocol.rb', line 575 def delete_bucket_cors(name) logger.info("Begin delete bucket cors, bucket: #{name}") sub_res = {'cors' => nil} @http.delete({:bucket => name, :sub_res => sub_res}) logger.info("Done delete bucket cors") end |