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
__construct()
public
__construct() : mixed
handle()
public
handle(mixed $request) : void
Parameters
-
$request
: mixed
-
private
addAllowedHeaders() : static
addAllowedMethods()
private
addAllowedMethods() : static
addAllowedOrigin()
private
addAllowedOrigin() : static
addMaxAge()
private
addMaxAge() : 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
isPreflight()
private
isPreflight(Request $request) : bool
Parameters
-
$request
: Request
-
resolveHttps()
private
resolveHttps(mixed $request) : static|null
Parameters
-
$request
: mixed
-
Return values
static|null