Browse Source

Add missing ':' in CSP

tags/v0.1.0
Gerben 5 years ago
parent
commit
cf6fc31070
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/Controller/RawResponse.php

+ 1
- 1
lib/Controller/RawResponse.php View File

@@ -5,7 +5,7 @@ trait RawResponse {
protected function returnRawResponse($content, $mimetype) { protected function returnRawResponse($content, $mimetype) {
// Ugly hack to prevent security middleware messing up the CSP. // Ugly hack to prevent security middleware messing up the CSP.
header( header(
"Content-Security-Policy: sandbox; default-src 'none'; img-src data:; media-src data; "
"Content-Security-Policy: sandbox; default-src 'none'; img-src data:; media-src data:; "
. "style-src data: 'unsafe-inline'; font-src data:; frame-src data:" . "style-src data: 'unsafe-inline'; font-src data:; frame-src data:"
); );
header("Content-Type: ${mimetype}"); header("Content-Type: ${mimetype}");


Loading…
Cancel
Save