Don't allow NOSANDBOX permission on a proxy as it can leak cookies
This commit is contained in:
parent
2f2c49cc47
commit
bee8aac0cc
1 changed files with 8 additions and 0 deletions
|
@ -178,6 +178,14 @@ class UiWebsocketPlugin(object):
|
|||
message += "and help to make a better network, then please run your own <a href='https://zeronet.io' target='_blank'>ZeroNet client</a>.</small>"
|
||||
self.cmd("notification", ["info", message])
|
||||
|
||||
def actionPermissionAdd(self, to, permission):
|
||||
if permission == "NOSANDBOX":
|
||||
self.cmd("notification", ["info", "You can't disable sandbox on this proxy!"])
|
||||
self.response(to, {"error": "Denied by proxy"})
|
||||
return False
|
||||
else:
|
||||
return super(UiWebsocketPlugin, self).actionPermissionAdd(to, permission)
|
||||
|
||||
|
||||
@PluginManager.registerTo("ConfigPlugin")
|
||||
class ConfigPlugin(object):
|
||||
|
|
Loading…
Reference in a new issue