Applied latest styleCI changes

This commit is contained in:
Dan Brown 2022-03-09 14:30:36 +00:00
parent fd26f54b99
commit ee6a2339b6
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class CspService
}
/**
* Get the CSP headers for the application
* Get the CSP headers for the application.
*/
public function getCspHeader(): string
{
@ -86,6 +86,7 @@ class CspService
{
$iframeHosts = $this->getAllowedIframeHosts();
array_unshift($iframeHosts, "'self'");
return 'frame-ancestors ' . implode(' ', $iframeHosts);
}
@ -97,6 +98,7 @@ class CspService
{
$iframeHosts = $this->getAllowedIframeSources();
array_unshift($iframeHosts, "'self'");
return 'frame-src ' . implode(' ', $iframeHosts);
}

View File

@ -130,7 +130,7 @@ class SecurityHeaderTest extends TestCase
{
config()->set([
'app.iframe_sources' => 'https://example.com',
'services.drawio' => 'https://diagrams.example.com/testing?cat=dog',
'services.drawio' => 'https://diagrams.example.com/testing?cat=dog',
]);
$resp = $this->get('/');