Browser & Web Performance · Senior · Question 56 of 75
Why doesn't SameSite protect against attacks from a compromised subdomain like blog.example.com?
- 1Subdomains can't set cookies
- 2
SameSiteonly works on port 443 - ✓Correct answer:
SameSiteis about sites, and subdomains ofexample.comare the same site, so cookies are still sent
Explanation
Same-site attacks need other defenses: CSRF tokens, __Host- cookies, Fetch Metadata and careful subdomain hygiene.