Make setting the Content-Security-Policy header optional so it doesn't break website mode shares

This commit is contained in:
Miguel Jacq 2019-09-16 12:10:17 +10:00
parent 320cac0ad1
commit a0d4e2880f
8 changed files with 86 additions and 10 deletions

View file

@ -66,7 +66,8 @@ class TestSettings:
'password': '',
'hidservauth_string': '',
'data_dir': os.path.expanduser('~/OnionShare'),
'public_mode': False
'public_mode': False,
'csp_header_enabled': True
}
for key in settings_obj._settings:
# Skip locale, it will not always default to the same thing