Description Usage Arguments Examples
PutBucketcors
1 | PutBucketcors(name, rules, body = NULL)
|
name |
The bucket name |
rules |
list Rules created by '.build.xml_body.PutBucketLifecycle.Rules'. Will be ignore when body parameter is specified. |
body |
charactor XML content of rules. |
1 2 3 4 5 6 | rules <- list()
rules[[1]] <- .build.xml_body.PutBucketcors.Rules(AllowedOrigin="*", AllowedMethod='GET')
rules[[2]] <- .build.xml_body.PutBucketcors.Rules(AllowedOrigin="igenecode.com", AllowedMethod=c('GET', 'PUT'))
rules[[3]] <- .build.xml_body.PutBucketcors.Rules(AllowedOrigin="www.igenecode.com", AllowedMethod='GET',
AllowedHeader='Authorization', ExposeHeader=c('x-oss-meta1', 'x-oss-meta2'), MaxAgeSeconds=100)
PutBucketcors('ross-test', rules)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.