| sidebar_position | 8 |
|---|---|
| title | Multi-User Pods |
| description | Path-based and subdomain-based pod hosting |
JSS supports hosting multiple users on a single server.
Users are at paths: example.com/alice/, example.com/bob/
jss startSimple but all pods share the same origin (XSS risk between pods).
Users get subdomains: alice.example.com, bob.example.com
jss start --subdomains --base-domain example.comEach pod has its own origin (browser's Same-Origin Policy protects).
| Mode | URL | Origin | XSS Risk |
|---|---|---|---|
| Path | example.com/alice/ |
example.com |
Shared |
| Subdomain | alice.example.com/ |
alice.example.com |
Isolated |
For subdomain mode, you need a wildcard DNS record:
*.example.com A <your-server-ip>
| Path Mode | Subdomain Mode |
|---|---|
example.com/alice/ |
alice.example.com/ |
example.com/alice/#me |
alice.example.com/#me |