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(