class
Illuminate
/
Http
/
Middleware
/
HandleCors
HandleCors
Properties
protected
$cors Fruitcake\...\CorsService
The CORS service instance.
Default: null
Methods
public
__construct ( Container $container , Fruitcake\...\CorsService $cors ) : void
Create a new middleware instance.
Parameters
- $container Container
- $cors Fruitcake\...\CorsService
protected
hasMatchingPath ( Request $request ) : bool
Get the path from the configuration to determine if the CORS service should run.
Parameters
- $request Request
protected
getPathsByHost ( string $host ) : array
Get the CORS paths for the given host.
Parameters
- $host string