Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions httpheader.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ class PlgSystemHttpHeader extends CMSPlugin
public function onAfterInitialise()
{
// Set the default header when they are enabled
$this->setStaticHeaders();

if ((int) $this->params->get('write_static_headers', 0) == 0)
{
$this->setStaticHeaders();
}
// Handle CSP Header configuration
$cspOptions = (int) $this->params->get('contentsecuritypolicy', 0);

Expand Down