diff options
Diffstat (limited to 'mitmproxy')
-rw-r--r-- | mitmproxy/web/__init__.py | 3 | ||||
-rw-r--r-- | mitmproxy/web/app.py | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/mitmproxy/web/__init__.py b/mitmproxy/web/__init__.py index 357718f1..80a65886 100644 --- a/mitmproxy/web/__init__.py +++ b/mitmproxy/web/__init__.py @@ -87,9 +87,6 @@ class WebState(flow.State): data=[] ) - def load_flows(self, flows): - super(WebState, self).load_flows(flows) - class Options(object): attributes = [ diff --git a/mitmproxy/web/app.py b/mitmproxy/web/app.py index 50ee894b..af2f6e8c 100644 --- a/mitmproxy/web/app.py +++ b/mitmproxy/web/app.py @@ -390,7 +390,7 @@ class Application(tornado.web.Application): settings = dict( template_path=os.path.join(os.path.dirname(__file__), "templates"), static_path=os.path.join(os.path.dirname(__file__), "static"), - xsrf_cookies=False, + xsrf_cookies=True, cookie_secret=os.urandom(256), debug=debug, wauthenticator=wauthenticator, |