mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 05:36:00 +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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user