From 5c375a64ef161465545ad671c998ed31ed23af5f Mon Sep 17 00:00:00 2001 From: KShivendu Date: Tue, 19 Sep 2023 09:22:56 +0530 Subject: [PATCH] refactor: Improve comment --- supertokens_python/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/supertokens_python/utils.py b/supertokens_python/utils.py index 9163925f7..f0f61f06d 100644 --- a/supertokens_python/utils.py +++ b/supertokens_python/utils.py @@ -303,10 +303,7 @@ def get_top_level_domain_for_same_site_resolution(url: str) -> str: parsed_url: Any = extract(hostname, include_psl_private_domains=True) if parsed_url.domain == "": # type: ignore if hostname.endswith(".amazonaws.com"): - # Example: url http://ec2-xx-yyy-zzz-0.compute-1.amazonaws.com - # return amazonaws.com - # If user deploys the website on the same ec2 instance as the API - # this use SameSite=lax, otherwise SameSite=none + # tldextract.extract() isn't able to parse AWS service public urls return "amazonaws.com" raise Exception(