diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index edc7c376b..96cbf78b5 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -1266,7 +1266,7 @@ class CakeResponse { * @return void */ public function cors(CakeRequest $request, $allowedDomains, $allowedMethods = array()) { - $origin = $request::header('Origin'); + $origin = $request->header('Origin'); if (!$origin) { return; }