This commit is contained in:
2021-09-24 17:46:20 +08:00
parent ab6ee6e95e
commit 7dbadf32e9
3 changed files with 39 additions and 36 deletions
+1 -6
View File
@@ -20,14 +20,9 @@ class CoreMiddleware extends Middleware
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
// TODO: Implement process() method.
\response()->withAccessControlAllowOrigin('*')
$this->response->withAccessControlAllowOrigin('*')
->withAccessControlRequestMethod($request->getAccessControlRequestMethod())
->withAccessControlAllowHeaders($request->getAccessControlAllowHeaders());
var_dump(get_called_class());
return $handler->handle($request);
}