mirror of
https://github.com/flarum/core.git
synced 2025-10-29 14:36:17 +01:00
Harden Headers (#2721)
* Basic security headers * Remove XSS Header (not relevent) * Fix config name * Use Arr::get() * Add tests * Re-fix the StoreConfig step for fresh installs Co-authored-by: luceos <luceos@users.noreply.github.com> Co-authored-by: Alexander Skvortsov <askvortsov1@users.noreply.github.com>
This commit is contained in:
@@ -55,10 +55,13 @@ class StoreConfig implements Step, ReversibleStep
|
||||
{
|
||||
return [
|
||||
'debug' => $this->debugMode,
|
||||
'poweredByHeader' => true,
|
||||
'database' => $this->dbConfig->toArray(),
|
||||
'url' => (string) $this->baseUrl,
|
||||
'paths' => $this->getPathsConfig(),
|
||||
'headers' => [
|
||||
'poweredByHeader' => true,
|
||||
'referrerPolicy' => 'same-origin',
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user