library/Garp/Cli/Command/S3.php
public function setCors() {
        $corsConfig = array(
            'CORSRules' => array(array(
                'AllowedHeaders' => array('*'),
                'AllowedMethods' => array('GET'),
                'AllowedOrigins' => array('*'),
            ))
        );
        $args = array(
            'bucket' => Zend_Registry::get('config')->cdn->s3->bucket,
            'cors-configuration' => "'" . json_encode($corsConfig) . "'"
        );
        return $this->s3api('put-bucket-cors', $args);
    }
public function setCors() {
        $corsConfig = array(
            'CORSRules' => array(array(
                'AllowedHeaders' => array('*'),
                'AllowedMethods' => array('GET'),
                'AllowedOrigins' => array('*'),
            ))
        );
        $args = array(
            'bucket' => Zend_Registry::get('config')->cdn->s3->bucket,
            'cors-configuration' => "'" . json_encode($corsConfig) . "'"
        );
        return $this->s3api('put-bucket-cors', $args);
    }
public function setCors ( ) { $ corsConfig = array ( 'CORSRules' => array ( array ( 'AllowedHeaders' => array ( '*' ) , 'AllowedMethods' => array ( 'GET' ) , 'AllowedOrigins' => array ( '*' ) , ) ) ) ; $ args = array ( 'bucket' => Zend_Registry :: get ( 'config' ) -> cdn -> s3 -> bucket , 'cors-configuration' => "'" . json_encode ( $ corsConfig ) . "'" ) ; return $ this -> s3api ( 'put-bucket-cors' , $ args ) ; }
Set CORS settings on bucket

@return bool
@todo Make CORS options configurable? Do you ever want full-fletched control over these?
Set CORS settings on bucket