mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-07-17 00:32:36 +00:00
Applied latest styleCI changes
This commit is contained in:
parent
fd26f54b99
commit
ee6a2339b6
|
@ -22,7 +22,7 @@ class CspService
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the CSP headers for the application
|
* Get the CSP headers for the application.
|
||||||
*/
|
*/
|
||||||
public function getCspHeader(): string
|
public function getCspHeader(): string
|
||||||
{
|
{
|
||||||
|
@ -86,6 +86,7 @@ class CspService
|
||||||
{
|
{
|
||||||
$iframeHosts = $this->getAllowedIframeHosts();
|
$iframeHosts = $this->getAllowedIframeHosts();
|
||||||
array_unshift($iframeHosts, "'self'");
|
array_unshift($iframeHosts, "'self'");
|
||||||
|
|
||||||
return 'frame-ancestors ' . implode(' ', $iframeHosts);
|
return 'frame-ancestors ' . implode(' ', $iframeHosts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,6 +98,7 @@ class CspService
|
||||||
{
|
{
|
||||||
$iframeHosts = $this->getAllowedIframeSources();
|
$iframeHosts = $this->getAllowedIframeSources();
|
||||||
array_unshift($iframeHosts, "'self'");
|
array_unshift($iframeHosts, "'self'");
|
||||||
|
|
||||||
return 'frame-src ' . implode(' ', $iframeHosts);
|
return 'frame-src ' . implode(' ', $iframeHosts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ class SecurityHeaderTest extends TestCase
|
||||||
{
|
{
|
||||||
config()->set([
|
config()->set([
|
||||||
'app.iframe_sources' => 'https://example.com',
|
'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('/');
|
$resp = $this->get('/');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user