Adjust tests to include base-uri
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
adfd1e63f6
commit
5f8f29508f
|
@ -184,7 +184,7 @@ class ControllerTest extends \Test\TestCase {
|
||||||
'test' => 'something',
|
'test' => 'something',
|
||||||
'Cache-Control' => 'no-cache, no-store, must-revalidate',
|
'Cache-Control' => 'no-cache, no-store, must-revalidate',
|
||||||
'Content-Type' => 'application/json; charset=utf-8',
|
'Content-Type' => 'application/json; charset=utf-8',
|
||||||
'Content-Security-Policy' => "default-src 'none';script-src 'self' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self'",
|
'Content-Security-Policy' => "default-src 'none';base-uri 'none';script-src 'self' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self'",
|
||||||
];
|
];
|
||||||
|
|
||||||
$response = $this->controller->customDataResponse(array('hi'));
|
$response = $this->controller->customDataResponse(array('hi'));
|
||||||
|
|
|
@ -68,7 +68,7 @@ class DataResponseTest extends \Test\TestCase {
|
||||||
|
|
||||||
$expectedHeaders = [
|
$expectedHeaders = [
|
||||||
'Cache-Control' => 'no-cache, no-store, must-revalidate',
|
'Cache-Control' => 'no-cache, no-store, must-revalidate',
|
||||||
'Content-Security-Policy' => "default-src 'none';script-src 'self' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self'",
|
'Content-Security-Policy' => "default-src 'none';base-uri 'none';script-src 'self' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self'",
|
||||||
];
|
];
|
||||||
$expectedHeaders = array_merge($expectedHeaders, $headers);
|
$expectedHeaders = array_merge($expectedHeaders, $headers);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue