mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-19 06:40:22 -04:00
Remove version string from http response headers, to avoid any information disclosure about the sender's server
This commit is contained in:
parent
36d3fac5c9
commit
91bb0eefa5
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ security_headers = [
|
||||||
('X-Xss-Protection', '1; mode=block'),
|
('X-Xss-Protection', '1; mode=block'),
|
||||||
('X-Content-Type-Options', 'nosniff'),
|
('X-Content-Type-Options', 'nosniff'),
|
||||||
('Referrer-Policy', 'no-referrer'),
|
('Referrer-Policy', 'no-referrer'),
|
||||||
('Server', strings._('version_string').format(common.get_version()))
|
('Server', 'OnionShare')
|
||||||
]
|
]
|
||||||
|
|
||||||
def set_file_info(filenames, processed_size_callback=None):
|
def set_file_info(filenames, processed_size_callback=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue