eee
This commit is contained in:
@@ -31,10 +31,10 @@ class CoreMiddleware implements MiddlewareInterface
|
|||||||
'Access-Control-Request-Method' => $request->getHeaderLine('Access-Control-Request-Method'),
|
'Access-Control-Request-Method' => $request->getHeaderLine('Access-Control-Request-Method'),
|
||||||
'Access-Control-Allow-Origin' => $request->getHeaderLine('Access-Control-Allow-Origin')
|
'Access-Control-Allow-Origin' => $request->getHeaderLine('Access-Control-Allow-Origin')
|
||||||
]);
|
]);
|
||||||
|
var_dump($request->getHeaders());
|
||||||
if ($request->getMethod() == 'OPTIONS') {
|
if ($request->getMethod() == 'OPTIONS') {
|
||||||
return $response->withStatus(200)->withBody(new Stream(''));
|
return $response->withStatus(200)->withBody(new Stream(''));
|
||||||
}
|
}
|
||||||
var_dump($request->getHeaders());
|
|
||||||
return $handler->handle($request);
|
return $handler->handle($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user