]> BookStack Code Mirror - bookstack/blobdiff - app/Util/CspService.php
Added additional testing for editor switching permissions
[bookstack] / app / Util / CspService.php
index ba927c93b29556b8949fd365aca6892f8fa10eb4..f9ab666acb79c6b9726bd6de7bf84b744f40092e 100644 (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);
     }