Cookie isolation
How Outer keeps one app's cookies from reaching another app on outer.now.
Every app serves under <your-app>.outer.now — one registrable domain for all apps. Browsers therefore treat all apps as same-site: without platform help, one app could set a Domain=outer.now cookie that every other app receives. The Outer proxy stops that on shared-domain hosts (your app host and its preview hosts), in both directions.
What Outer guarantees
- Responses are host-locked. The proxy rewrites every
Set-Cookieyour app sends:sidbecomes__Host-o.sid, anyDomainattribute is dropped, andPath=/plusSecureare forced.Max-Age,Expires,HttpOnly,SameSiteandPartitionedsurvive; anything else is dropped. Cookies your app already marks__Host-pass through unchanged — browsers already scope those to the setting host. - Requests carry only host cookies. The proxy forwards only
__Host-cookies to your app:__Host-o.sidmaps back tosid, your own__Host-names pass as-is, platform cookies (__Host-outer_sid, the visitor and age gate cookies) stay stripped, and everything else — including anyDomaincookie another app tossed, which can never carry a__Host-name — is dropped before your app sees it. - Your JavaScript sees the same view. The proxy injects a tiny shim into every HTML page that wraps
document.cookieandwindow.cookieStorewith the same mapping: reads skip foreign cookies, writes land host-locked. If your response carries aContent-Security-Policywithscript-srcordefault-src, the proxy allowlists exactly the shim’s hash and weakens nothing else.
Names starting with __Host- (any casing of the three platform cookies included) are reserved: your app cannot set them, and they never reach your app.
Residual limits
- Cookie flooding is still possible. Isolation is about which cookies arrive, not how many: a hostile app can still set large volumes of host-locked cookies in a victim’s browser (browser jar limits apply per host, and eviction can drop the victim’s own cookies). Rate-limit what you store client-side for anything valuable.
- A strict page CSP only loses the JS shim. If your page carries a
<meta http-equiv="Content-Security-Policy">that blocks inline scripts, or a response CSP the proxy cannot hash into, the client shim cannot run there. Server-side isolation still holds — the app’s server never sees foreign cookies — but the page’s own JavaScript reads rawdocument.cookie. Prefer the response header over the meta tag: the proxy allowlists the shim in response headers automatically. Pathscoping becomes/. AnyPathyour app sets is forced to/: cookies are per-app (per host), not per path, on shared domains.- Custom domains are unaffected. Isolation applies only under
outer.now. Your custom domain is its own site: cookies pass through exactly as your app sets them, and no shim is injected.
Related reading: Who can see your app.