Skip to content

Commit 4ba8f58

Browse files
committed
Update network_cookies.py snippet
1 parent 1f8693b commit 4ba8f58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/snippets/network_cookies.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def CanGetCookies(self, frame, request, **_):
3030
print("-- CanGetCookies #"+str(self.getcount))
3131
print("url="+request.GetUrl()[0:80])
3232
print("")
33+
# Return True to allow reading cookies and False to block
3334
return True
3435

3536
def CanSetCookie(self, frame, request, cookie, **_):
@@ -42,6 +43,7 @@ def CanSetCookie(self, frame, request, cookie, **_):
4243
print("Name="+cookie.GetName())
4344
print("Value="+cookie.GetValue())
4445
print("")
46+
# Return True to allow setting cookie and False to block
4547
return True
4648

4749

0 commit comments

Comments
 (0)