Barryvdh\Cors\Stack\CorsService::checkMethod PHP Метод

checkMethod() приватный Метод

private checkMethod ( Request $request )
$request Symfony\Component\HttpFoundation\Request
    private function checkMethod(Request $request)
    {
        if ($this->options['allowedMethods'] === true) {
            // allow all '*' flag
            return true;
        }
        $requestMethod = strtoupper($request->headers->get('Access-Control-Request-Method'));
        return in_array($requestMethod, $this->options['allowedMethods']);
    }