Skip to content

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).

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.

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.io

With 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 emails sharing.abuse_email (defaulting to the admin email).

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.