Es sollte auf die notwendigen Header geachtet werden (https://developer.mozilla.org/de/docs/Web/HTTP/CORS)
This commit is contained in:
@@ -14,6 +14,10 @@ class BrowseWorkingHoursYearlyCest
|
||||
$I->haveHttpHeader('Access-Control-Request-Method', 'GET');
|
||||
$I->sendOptions('/views/working-hours/yearly');
|
||||
$I->seeResponseCodeIs(HttpCode::OK);
|
||||
$I->seeHttpHeader('Access-Control-Allow-Origin', Api::TEST_ORIGIN);
|
||||
$I->seeHttpHeader('Access-Control-Allow-Methods');
|
||||
$I->seeHttpHeader('Access-Control-Allow-Headers');
|
||||
$I->seeHttpHeader('Access-Control-Max-Age');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user