protected function createOriginNotAllowedResponse(Request $request) { return $this->originNotAllowed ? call_user_func($this->originNotAllowed, $request) : $this->createErrorResponse('Origin not allowed.', 403); }