Pionia Core

PioniaCors
in package
implements CorsContract

Table of Contents

Interfaces

CorsContract

Properties

$settings  : Arrayable|null

Methods

__construct()  : mixed
handle()  : void
addAllowedHeaders()  : static
addAllowedMethods()  : static
addAllowedOrigin()  : static
addMaxAge()  : static
blockNonAllowedOrigins()  : static|null
handlePreflight()  : static|null
isPreflight()  : bool
resolveHttps()  : static|null

Properties

Methods

handle()

public handle(mixed $request) : void
Parameters
$request : mixed

addAllowedHeaders()

private addAllowedHeaders() : static
Return values
static

addAllowedMethods()

private addAllowedMethods() : static
Return values
static

addAllowedOrigin()

private addAllowedOrigin() : static
Return values
static

addMaxAge()

private addMaxAge() : static
Return values
static

blockNonAllowedOrigins()

private blockNonAllowedOrigins(Request $request) : static|null
Parameters
$request : Request
Return values
static|null

handlePreflight()

private handlePreflight(Request $request) : static|null
Parameters
$request : Request
Return values
static|null

resolveHttps()

private resolveHttps(mixed $request) : static|null
Parameters
$request : mixed
Return values
static|null

        
On this page

Search results