This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author 西田雄治
Recipients 西田雄治
Date 2018-10-31.06:52:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540968768.96.0.788709270274.issue35121@psf.upfronthosting.co.za>
In-reply-to
Content
http.cookiejar.DefaultPolicy.domain_return_ok returns incorrect results.

So, HTTP clients send cookies which issued from wrong server.

policy = http.cookiejar.DefaultCookiePolicy()
req = urllib.request.Request('https://xxxfoo.co.jp/')
print(policy.domain_return_ok('foo.co.jp', req)   # should be False, but it returns True
History
Date User Action Args
2018-10-31 06:52:48西田雄治setrecipients: + 西田雄治
2018-10-31 06:52:48西田雄治setmessageid: <1540968768.96.0.788709270274.issue35121@psf.upfronthosting.co.za>
2018-10-31 06:52:48西田雄治linkissue35121 messages
2018-10-31 06:52:48西田雄治create