Scalr\Service\Aws\S3\DataType\BucketData::setCors PHP Method

setCors() public method

Sets the cors configuration for your bucket. If the configuration exists, Amazon S3 replaces it.
public setCors ( string $cors ) : boolean
$cors string A XML document that defines Cors configuration.
return boolean Returns true on succes or false if failure.
    public function setCors($cors)
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getS3()->bucket->setCors($this->bucketName, $cors);
    }