mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-16 16:19:09 +08: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
|
||||
{
|
||||
@ -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…
x
Reference in New Issue
Block a user