[3.5] bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) by tirkarthi · Pull Request #12281 · python/cpython

Don't send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with http.cookiejar.DefaultCookiePolicy policy. Patch by Karthikeyan Singaravelan.
(cherry picked from commit ca7fe50)

Co-authored-by: Xtreak tir.karthi@gmail.com

https://bugs.python.org/issue35121