Skip to content

Commit

Permalink
fix: added missing CSP for HTML5 exports
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Feb 18, 2023
1 parent bbc5d4a commit ca75f46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpmyfaq/src/phpMyFAQ/Export/Html5.php
Expand Up @@ -93,6 +93,10 @@ public function generate(int $categoryId = 0, bool $downwards = true, string $la
$this->xml->startElement('meta');
$this->xml->writeAttribute('charset', 'utf-8');
$this->xml->endElement();
$this->xml->startElement('meta');
$this->xml->writeAttribute('http-equiv', 'Content-Security-Policy');
$this->xml->writeAttribute('content', 'default-src \'self\'; img-src https://*; child-src \'none\';');
$this->xml->endElement();
$this->xml->endElement(); // </head>

$this->xml->startElement('body');
Expand Down

0 comments on commit ca75f46

Please sign in to comment.