From 3a7cb0b5cda2190c80fd012724eb97c7c478d099 Mon Sep 17 00:00:00 2001 From: Ben Nottelling Date: Fri, 6 Aug 2021 19:16:15 -0700 Subject: [PATCH] Because not everyone run an HTTPS only site, disable secure cookies by default --- src/bb-config-sample.php | 3 +++ src/csrfp-config.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bb-config-sample.php b/src/bb-config-sample.php index 0dac096a6..d1cd37700 100755 --- a/src/bb-config-sample.php +++ b/src/bb-config-sample.php @@ -19,6 +19,9 @@ return array( */ 'url' => 'http://localhost/', + /** + * The URL prefix to access the BB admin area. Ex: '/bb-admin' = https://example.com/bb-admin + */ 'admin_area_prefix' => '/bb-admin', /** diff --git a/src/csrfp-config.php b/src/csrfp-config.php index 774b57dc6..1e52353ba 100644 --- a/src/csrfp-config.php +++ b/src/csrfp-config.php @@ -18,7 +18,7 @@ return array( "cookieConfig" => array( "path" => '', "domain" => '', - "secure" => true, + "secure" => false, "expire" => '', ), "disabledJavascriptMessage" => "This site attempts to protect users against