Site origins
Every hosted site runs on its own origin, <site>-play.0x.limo, so games can't read each other's storage or script each other's frames.
Every hosted site has its own origin:
https://<site>-play.0x.limo/sites/<site>/<n>/For example, version 10 of the site hellengine is at
https://hellengine-play.0x.limo/sites/hellengine/10/. This has been the form since 2026-10-16.
#Why an origin per site
A browser treats an origin as one trust domain. When every game shared
play.0x.limo, any game could read and overwrite every other game's localStorage (where
@0xlimo/platform keeps the player's session), IndexedDB, Cache Storage and cookies, and could frame
another game's page and script it. With an origin each:
- your game's storage, caches, service worker and IndexedDB are yours alone;
- another game can't load your pages under its own origin, and can't reach into your frame
(the browser throws a
SecurityError); - the platform API can allow exactly the hosted origins with CORS (
https://*-play.0x.limo), so@0xlimo/platformworks from every hosted game, and from no other site.
#What the front serves on your host
<site>-play.0x.limo serves your site and nothing else:
| request | answer |
|---|---|
/sites/<site>/<n>/... (your site, a published version) | the file, with the isolation and policy headers |
/sites/<other>/... | 404 |
a path with .., \, // or encoded dots or slashes | 404 |
POST /x1/xfer | your page's transfer reports (anonymous, rate-limited) |
POST /x1/csp | your page's CSP violation reports (see Content-Security-Policy) |
/sites/<site>/<n>/.../p2p/ice | STUN and TURN servers (see Tracker and web seed) |
| anything else | 404 |
Any other host under *.0x.limo that is not <name>-play answers 404.
#Old URLs
Links of the old form keep working. https://play.0x.limo/sites/<site>/... answers with a
301 to https://<site>-play.0x.limo/sites/<site>/..., with the path and query kept.
Store listings submitted before the move still point at the old URL until they are resubmitted, and the redirect covers them. Resubmit to store the new URL. Some platform features look a site up by its current URL only (paid sites, transfer reports).
#Site names
A site name is 3 to 40 characters: a-z, 0-9 and -, not starting or ending with -. Names
are global and first come, first served. Platform host names can't be taken, either as the
name or as the host's first label (for example api, play, p2p, docs, www, store,
earth, war, lossantos, embed, sites). The API answers 409 that site name is reserved.
#Cookies
- The front removes
Set-Cookiefrom every hosted response, and hosted game servers (/x1/game/) can't set cookies with aDomainattribute. - Your page's script can still write cookies with
document.cookie. Hosted origins are subdomains of0x.limo, so a script could set aDomain=0x.limocookie. Nothing in the platform reads such cookies, and the console's cookie is__Host-prefixed, so a game can't shadow it. Keep your game's own state inlocalStorageor IndexedDB on your origin.
#What this means for your code
- Use relative URLs (
./assets/ship.glb), or URLs under your own version directory. Don't hard-codeplay.0x.limo/sites/.... - A new version is a new path on the same origin. Storage persists across your versions, so migrate your saved data when its format changes.
- If your game talks to your own backend, that backend must allow your site's origin
(
https://<site>-play.0x.limo) with CORS, and you must declare it in"csp".
