Static sites
Any folder containing an index.html can be shared as a website link. Recipients see the rendered static site instead of a file listing, while keeping Sendcrate’s access controls (passwords, email allowlists, expiry dates, and view limits).
Origin isolation requirements
Section titled “Origin isolation requirements”Because a static website can execute arbitrary JavaScript in visitors’ browsers, website links require share_url to be on a different origin from app_url. Serving untrusted HTML on the same origin as the signed-in app would allow site scripts to act as the signed-in user.
Isolated per-site subdomains (site_host)
Section titled “Isolated per-site subdomains (site_host)”For full browser functionality (cookies, localStorage, normal scripts, and root-relative asset paths like /assets/app.js), configure sharing.site_host (SENDCRATE_SITE_HOST) on a dedicated domain:
sharing: site_host: acme-sites.net abuse_email: abuse@acme.ioWith site_host configured:
- Random-slug sites are served at
https://<slug>.<site_host>. - Named links are served at
https://<name>--<org>.<site_host>. - Visiting
https://<site_host>itself displays a built-in abuse report form that emailssharing.abuse_email(defaulting to the admin email).
Fallback without site_host
Section titled “Fallback without site_host”If site_host is not set (and share_url is still on a different origin from app_url), Sendcrate serves sites under /s/<slug>/ with a Content-Security-Policy: sandbox allow-scripts allow-forms header.