---
title: "Discussion on \"Why Platforms Isolate User Content From Their Main Domains\" | Hashnode"
description: "Discussion on \"Why Platforms Isolate User Content From Their Main Domains\". A System Design Case Study on Domain Isolation, Browser Security, Cookie Tossing, and the Public Suffix List"
url: "https://hashnode.com/posts/why-platforms-isolate-user-content-from-their-main-domains/6b0140fa3391c0587d260993"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Platforms Isolate User Content From Their Main Domains](https://vaishd.hashnode.dev/why-platforms-isolate-user-content-from-their-main-domains?utm_source=hashnode&utm_medium=feed)

A System Design Case Study on Domain Isolation, Browser Security, Cookie Tossing, and the Public Suffix List

5d ago · 22 min read · vaishd.hashnode.dev  
Read the article

-   [#system-design](https://hashnode.com/tag/system-design)
-   [#vercel](https://hashnode.com/tag/vercel)
-   [#netlify](https://hashnode.com/tag/netlify)
-   [#github](https://hashnode.com/tag/github)
-   [#cors](https://hashnode.com/tag/cors)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Vaishnavi Dwivedi](https://hashnode.com/@vaishD)

@vaishD

  
[View profile](https://hashnode.com/@vaishD)

Exploring and Expanding Dev community

## Responses 2

Markdown supported · ⌘↵ to post

[AI Developer](https://hashnode.com/@lycore)

[5d ago](https://hashnode.com/posts/why-platforms-isolate-user-content-from-their-main-domains/6b0140fa3391c0587d260993/comment/6b0188e4e1dcddc4fb018ec3)

Good point that different origins aren't different sites. One thing worth adding to the checklist: \_\_Host- prefixed cookies can't be overwritten from a sibling subdomain (they require Secure, Path=/ and no Domain attribute), which blunts cookie tossing even on platforms that aren't on the PSL yet. Do you see the PSL as a replacement for that kind of cookie hardening, or only a complement, given that PSL inclusion takes time to propagate to browsers?

[Vaishnavi Dwivedi](https://hashnode.com/@vaishD)

[4d ago](https://hashnode.com/posts/why-platforms-isolate-user-content-from-their-main-domains/6b0140fa3391c0587d260993/comment/6b0188e4e1dcddc4fb018ec3#reply-6b0252c0770e6399df6ba66c)

That's a great point. I see PSL inclusion and cookie hardening as complementary rather than replacements for each other.

The `__Host-` prefix provides a strong layer of protection against cookie tossing by preventing cookies from being set with a `Domain` attribute, while PSL inclusion adds isolation at the site level for tenant domains.

Since PSL updates can take time to propagate across browsers, cookie hardening should be the first line of defense rather than something we rely on PSL to solve. Ideally, both should be in place.
