How SYNTHPLAY Isolates Community HTML5 Games with Cross-Origin Sandboxes & Cloudflare R2
A technical breakdown of SYNTHPLAY's dual-domain security model (synthplay.games vs *.synthplay-box.cloud), automated AST scanning, ZIP-bomb guards, and zero-egress R2 CDN delivery.
Why Game Code Must Never Run on the Main Auth Domain
Hosting community-uploaded JavaScript on the same root domain as user accounts is a classic XSS hazard: any malicious script could read session cookies or impersonate logged-in players.
SYNTHPLAY enforces strict origin separation. The storefront lives at synthplay.games, while every community HTML5/ZIP bundle executes from its own isolated wildcard subdomain (*.synthplay-box.cloud) behind a Cloudflare Worker proxy with restrictive iframe sandbox attributes and Content Security Policy headers.
Automated Upload Quarantine & Zero-Egress Global Speed
Before any ZIP bundle goes live, SYNTHPLAY validates file sizes against ZIP-bomb expansion attacks, inspects scripts for unsafe external cookie/token exfiltration, and checks asset integrity. Approved builds are served directly from Cloudflare R2 object storage so indie creators enjoy global CDN speed without bandwidth bills.


