Fixed CORS post without preflight
Change-Id: If58d767dd9f3195b17b5c7c12a7cf9abf588c2c9
This commit is contained in:
parent
db247d60b2
commit
d000e398aa
@ -179,9 +179,8 @@ class CORSMiddleware
|
||||
$data = $this->cache_service->getHash($cache_id, CORSRequestPreflightData::$cache_attributes);
|
||||
if (!count($data))
|
||||
{
|
||||
$response = new Response();
|
||||
$response->setStatusCode(403);
|
||||
return $response;
|
||||
// there wasnt preflight so just regular processing
|
||||
return null;
|
||||
}
|
||||
// ----Step 2b: Check that pre-flight information declared during the pre-flight request match the current request on key information
|
||||
$match = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user