Commit b7e0a451 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5842-security-missing-security-headers' into '1.3-dev'

Resolve "Security: Missing Security Headers"

See merge request fusiondirectory/fd!281
Showing with 13 additions and 5 deletions
+13 -5
......@@ -24,7 +24,11 @@ require_once ("../include/php_setup.inc");
require_once ("functions.inc");
require_once ("variables.inc");
require_once ("class_logging.inc");
header("Content-type: text/html; charset=UTF-8");
/* Set headers */
header('Content-type: text/html; charset=UTF-8');
header('X-XSS-Protection: 1; mode=block');
header('X-Content-Type-Options: nosniff');
/* Display the login page and exit() */
function displayLogin()
......
......@@ -27,8 +27,10 @@ require_once ("../include/php_setup.inc");
require_once ("functions.inc");
require_once ("variables.inc");
/* Set header */
header("Content-type: text/html; charset=UTF-8");
/* Set headers */
header('Content-type: text/html; charset=UTF-8');
header('X-XSS-Protection: 1; mode=block');
header('X-Content-Type-Options: nosniff');
/* Set the text domain as 'fusiondirectory' */
$domain = 'fusiondirectory';
......
......@@ -35,8 +35,10 @@ require_once("../setup/class_setupStepMigrate.inc");
require_once("../setup/class_setupStepFinish.inc");
/* Set header */
header("Content-type: text/html; charset=UTF-8");
/* Set headers */
header('Content-type: text/html; charset=UTF-8');
header('X-XSS-Protection: 1; mode=block');
header('X-Content-Type-Options: nosniff');
/* Set cookie lifetime to one day (The parameter is in seconds ) */
session_set_cookie_params(24 * 60 * 60);
......
  • bmortier @bmortier

    mentioned in commit e607b5b6

    By Côme Chilliet on 2018-06-26T09:59:58 (imported from GitLab)

    ·

    mentioned in commit e607b5b6

    By Côme Chilliet on 2018-06-26T09:59:58 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in merge request !305

    By Côme Chilliet on 2018-06-26T10:00:14 (imported from GitLab)

    ·

    mentioned in merge request !305

    By Côme Chilliet on 2018-06-26T10:00:14 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in commit 06145ede

    By Côme Chilliet on 2018-06-26T10:08:00 (imported from GitLab)

    ·

    mentioned in commit 06145ede

    By Côme Chilliet on 2018-06-26T10:08:00 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in commit 451768c6

    By Côme Chilliet on 2018-06-26T10:22:22 (imported from GitLab)

    ·

    mentioned in commit 451768c6

    By Côme Chilliet on 2018-06-26T10:22:22 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in merge request !307

    By Côme Chilliet on 2018-06-26T10:22:34 (imported from GitLab)

    ·

    mentioned in merge request !307

    By Côme Chilliet on 2018-06-26T10:22:34 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in commit 45a180c1

    By Côme Chilliet on 2018-06-26T10:32:32 (imported from GitLab)

    ·

    mentioned in commit 45a180c1

    By Côme Chilliet on 2018-06-26T10:32:32 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in commit 41dfbba5

    By Côme Chilliet on 2020-06-11T14:30:46 (imported from GitLab)

    ·

    mentioned in commit 41dfbba5

    By Côme Chilliet on 2020-06-11T14:30:46 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in merge request !783

    By bmortier on 2020-06-11T14:31:01 (imported from GitLab)

    ·

    mentioned in merge request !783

    By bmortier on 2020-06-11T14:31:01 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment