Skip to content

Commit

Permalink
Remove security headers - too strict
Browse files Browse the repository at this point in the history
for #323
  • Loading branch information
g105b committed Jul 25, 2019
1 parent bd60c2e commit e0d5203
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Lifecycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ public function start():void {
])
);

$this->defaultSecurityHeaders($config->get("security.default_headers"));

$input = new Input($_GET, $_POST, $_FILES);
$cookie = new CookieHandler($_COOKIE);

Expand Down Expand Up @@ -125,18 +123,6 @@ public function start():void {
$this->finish($response);
}

/**
* Set some sensible security headers by default. These can be
* overridden/disabled in the project's config.ini, but it makes sense
* to supply them by default in order to protect user applications
* without the explicit need for security configuration.
*/
public function defaultSecurityHeaders(string $headersString) {
foreach(explode(";", $headersString) as $header) {
header(trim($header));
}
}

/**
* By default, PHP passes all sensitive user information around in global variables,
* available for reading and modification in any code, including third party libraries.
Expand Down

0 comments on commit e0d5203

Please sign in to comment.