mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-11 07:40:26 -04:00
Invert the CSP header setting and put it in its own Website Mode settings group. Make the CSP header mandatory for share/receive modes, optional for website mode only.
This commit is contained in:
parent
17063e54db
commit
d8c0bc4e4f
8 changed files with 49 additions and 34 deletions
|
@ -67,7 +67,7 @@ class TestSettings:
|
|||
'hidservauth_string': '',
|
||||
'data_dir': os.path.expanduser('~/OnionShare'),
|
||||
'public_mode': False,
|
||||
'csp_header_enabled': True
|
||||
'csp_header_disabled': False
|
||||
}
|
||||
for key in settings_obj._settings:
|
||||
# Skip locale, it will not always default to the same thing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue