Skip to main content

Multi-User Pods

JSS supports hosting multiple users on a single server.

Path-based (default)

Users are at paths: example.com/alice/, example.com/bob/

jss start

Simple but all pods share the same origin (XSS risk between pods).

Subdomain-based

Users get subdomains: alice.example.com, bob.example.com

jss start --subdomains --base-domain example.com

Each pod has its own origin (browser's Same-Origin Policy protects).

Comparison

ModeURLOriginXSS Risk
Pathexample.com/alice/example.comShared
Subdomainalice.example.com/alice.example.comIsolated

DNS Configuration

For subdomain mode, you need a wildcard DNS record:

*.example.com  A  <your-server-ip>

Pod URLs

Path ModeSubdomain Mode
example.com/alice/alice.example.com/
example.com/alice/#mealice.example.com/#me