diff --git a/examples/snippets/network_cookies.py b/examples/snippets/network_cookies.py index ad1e2c18..55a71ec0 100644 --- a/examples/snippets/network_cookies.py +++ b/examples/snippets/network_cookies.py @@ -30,6 +30,7 @@ def CanGetCookies(self, frame, request, **_): print("-- CanGetCookies #"+str(self.getcount)) print("url="+request.GetUrl()[0:80]) print("") + # Return True to allow reading cookies and False to block return True def CanSetCookie(self, frame, request, cookie, **_): @@ -42,6 +43,7 @@ def CanSetCookie(self, frame, request, cookie, **_): print("Name="+cookie.GetName()) print("Value="+cookie.GetValue()) print("") + # Return True to allow setting cookie and False to block return True