class
Illuminate
/
Http
/
Middleware
/
HandleCors
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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