PHP 클래스 Barryvdh\Cors\HandlePreflight

파일 보기 프로젝트 열기: barryvdh/laravel-cors

공개 메소드들

메소드 설명
__construct ( CorsService $cors, Router $router, Illuminate\Contracts\Http\Kernel $kernel )
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed Handle an incoming OPTIONS request.

비공개 메소드들

메소드 설명
hasMatchingCorsRoute ( Illuminate\Http\Request $request ) : boolean Verify the current OPTIONS request matches a CORS-enabled route

메소드 상세

__construct() 공개 메소드

public __construct ( CorsService $cors, Router $router, Illuminate\Contracts\Http\Kernel $kernel )
$cors Barryvdh\Cors\Stack\CorsService
$router Illuminate\Routing\Router
$kernel Illuminate\Contracts\Http\Kernel

handle() 공개 메소드

Handle an incoming OPTIONS request.
public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
리턴 mixed