mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-10 07:17:32 +00:00
Applied latest styleCI changes
This commit is contained in:
parent
fd26f54b99
commit
ee6a2339b6
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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('/');
|
||||
|
|
Loading…
Add table
Reference in a new issue