Skip to content

Commit

Permalink
Remove duplicate add call
Browse files Browse the repository at this point in the history
  • Loading branch information
Firesphere authored Jul 21, 2023
1 parent 2aa4d5f commit f0a96d6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Extensions/ControllerCSPExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public function onBeforeInit()
$permissionConfig = $config->get('permissions_config');
$this->addPolicyHeaders = ($cspConfig['enabled'] ?? false) || static::checkCookie($owner->getRequest());
$this->addPermissionHeaders = $permissionConfig['enabled'] ?? false;
$this->addCSPHeaders($cspConfig, $owner);
/** @var Controller $owner */
// Policy-headers
if ($this->addPolicyHeaders) {
Expand Down

0 comments on commit f0a96d6

Please sign in to comment.