Scalr\Service\Aws\S3\Handler\BucketHandler::getCors PHP Method

getCors() public method

Returns the cors configuration information set for the bucket.
public getCors ( BucketData | string $bucketName ) : string
$bucketName Scalr\Service\Aws\S3\DataType\BucketData | string A bucket name.
return string Returns CORSConfiguration XML Document
    public function getCors($bucketName)
    {
        if ($bucketName instanceof BucketData) {
            $bucketName = $bucketName->bucketName;
        }
        return $this->getS3()->getApiHandler()->getBucketCors($bucketName);
    }