mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 16:29:31 -05:00
Remove version string from http response headers, to avoid any information disclosure about the sender's server
This commit is contained in:
parent
e01716bca9
commit
174c03e892
@ -54,7 +54,7 @@ security_headers = [
|
||||
('X-Xss-Protection', '1; mode=block'),
|
||||
('X-Content-Type-Options', 'nosniff'),
|
||||
('Referrer-Policy', 'no-referrer'),
|
||||
('Server', strings._('version_string').format(common.get_version()))
|
||||
('Server', 'OnionShare')
|
||||
]
|
||||
|
||||
def set_file_info(filenames, processed_size_callback=None):
|
||||
|
Loading…
Reference in New Issue
Block a user