PHP Class Eva\EvaEngine\Service\Cors

Inheritance: implements Phalcon\DI\InjectionAwareInterface
Show file Open project: evaengine/evaengine

Protected Properties

Property Type Description
$_di
$config

Public Methods

Method Description
__construct ( $config )
getConfig ( )
getDI ( )
isOriginIsSameAsHost ( )
preflightRequests ( $allowCredentials = 'true', $allowMethods = 'GET, POST, PUT, DELETE, OPTIONS', $allowHeaders = 'Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With' )
setConfig ( $config )
setDI ( $di )
simpleRequests ( )

Protected Methods

Method Description
isHttpOriginIsInTheWhiteList ( )

Method Details

__construct() public method

public __construct ( $config )

getConfig() public method

public getConfig ( )

getDI() public method

public getDI ( )

isHttpOriginIsInTheWhiteList() protected method

isOriginIsSameAsHost() public method

preflightRequests() public method

public preflightRequests ( $allowCredentials = 'true', $allowMethods = 'GET, POST, PUT, DELETE, OPTIONS', $allowHeaders = 'Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With' )

setConfig() public method

public setConfig ( $config )

setDI() public method

public setDI ( $di )

simpleRequests() public method

public simpleRequests ( )

Property Details

$_di protected property

protected $_di

$config protected property

protected $config