[3.7] bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) by miss-islington · Pull Request #12261 · python/cpython

@tirkarthi @miss-islington

…onGH-10258)

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>