Cors
    
            
            in package
            
        
    
    
    
Leaf CORS Module ------- CORS simplified. Enable CORS with various options.
Inspired by Express JS' CORS package.
Tags
Table of Contents
Properties
- $config : mixed
- $defaultConfig : mixed
Methods
- config() : mixed
- configureCredentials() : mixed
- configureExposedHeaders() : mixed
- configureHeaders() : mixed
- configureMaxAge() : mixed
- configureMethods() : mixed
- configureOrigin() : mixed
- isOriginAllowed() : mixed
Properties
$config
    protected
    static    mixed
    $config
     = []
    
    
    
    
$defaultConfig
    protected
    static    mixed
    $defaultConfig
     = ['origin' => '*', 'methods' => 'GET,HEAD,PUT,PATCH,POST,DELETE', 'allowedHeaders' => '*', 'exposedHeaders' => '', 'credentials' => false, 'maxAge' => null, 'preflightContinue' => false, 'optionsSuccessStatus' => 204]
    
    
    
    
Methods
config()
    public
            static        config([mixed $config = [] ]) : mixed
    Parameters
- $config : mixed = []
configureCredentials()
    protected
            static        configureCredentials() : mixed
    configureExposedHeaders()
    protected
            static        configureExposedHeaders() : mixed
    configureHeaders()
    protected
            static        configureHeaders() : mixed
    configureMaxAge()
    protected
            static        configureMaxAge() : mixed
    configureMethods()
    protected
            static        configureMethods() : mixed
    configureOrigin()
    protected
            static        configureOrigin() : mixed
    isOriginAllowed()
    protected
            static        isOriginAllowed(mixed $allowedOrigin) : mixed
    Parameters
- $allowedOrigin : mixed