bug fixing

This commit is contained in:
Roland Schneider 2021-09-28 21:30:34 +02:00
parent 2b1c3319f4
commit 72a617c666

View File

@ -23,15 +23,6 @@ class RestController extends Controller
'auth' => [$this, 'auth'], 'auth' => [$this, 'auth'],
'optional' => $this->getOptionalActions(), 'optional' => $this->getOptionalActions(),
]; ];
$behaviors['corsFilter'] = [
'class' => Cors::class,
'cors' => [
// restrict access to
'Origin' => ['https://botondfitness.hu'],
// Allow credentials (cookies, authorization headers, etc.) to be exposed to the browser
'Access-Control-Allow-Credentials' => true,
]
];
return $behaviors; return $behaviors;
} }