mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed code for PHP 5.2
This commit is contained in:
parent
ec7196013c
commit
5d016a7dbf
1 changed files with 1 additions and 1 deletions
|
@ -1266,7 +1266,7 @@ class CakeResponse {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function cors(CakeRequest $request, $allowedDomains, $allowedMethods = array()) {
|
public function cors(CakeRequest $request, $allowedDomains, $allowedMethods = array()) {
|
||||||
$origin = $request::header('Origin');
|
$origin = $request->header('Origin');
|
||||||
if (!$origin) {
|
if (!$origin) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue