Scalr\Service\Aws\S3\DataType\BucketData::setCors PHP Метод

setCors() публичный Метод

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.
Результат boolean Returns true on succes or false if failure.
    public function setCors($cors)
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getS3()->bucket->setCors($this->bucketName, $cors);
    }