Skip to content

Domains and origins

Origin settings control which browser origins can submit to a form, and optional workspace domain verification lets you trust hostnames you control for origin matching and redirect targets.

Domain verification is not required to use SubmitOwl.

Configure origin restrictions per form in Form Settings → Allowed origins:

Mode Dashboard label Accepted browser origins
any (default) Any site No origin restriction, including when the Origin header is missing. Other submission checks still apply.
list Only these origins Only entries in the form’s Allowed origins list
verified Only my verified domains Workspace verified domains plus any entries in the form’s Allowed origins list
  • Each form supports up to 20 entries in Allowed origins.
  • Entries may be either a hostname (for example, example.com), which matches that exact hostname over HTTP or HTTPS without a non-default port, or a full HTTP(S) origin (for example, http://localhost:4321 or https://preview.example.com), which matches scheme, hostname, and port exactly.
  • Paths, query strings, and hash fragments are not allowed. A full origin may end with a single /.
  • Use Allowed origins for localhost and preview deployment URLs rather than trying to add them as verified domains.
  • In Only my verified domains (verified) mode, DNS-verified domains match the verified hostname and all of its subdomains, while file-verified domains match only the exact verified hostname. These domain matches do not depend on the scheme or port of the HTTP(S) origin.

Rejected origins and requests without Origin

Section titled “Rejected origins and requests without Origin”
  • In Only these origins (list) and Only my verified domains (verified) modes, browser submissions from any other site return 403 origin_not_allowed.
  • Unauthenticated requests that do not send an Origin header (such as curl or backend scripts) are also rejected in list and verified modes. Use a server key for server-side submissions.
  • Repeated plausible origin rejections can trigger the rejecting status in form health and appear in health diagnostics in the dashboard.

Manage verified domains per workspace in Settings → Domains.

  • Enter a hostname only — do not include https://, a path, a wildcard (*.), a port, localhost, or an IP literal.
  • Hostnames are normalized to lowercase with any trailing dot removed.
  • Two workspaces can verify the same hostname independently.
  • Domain entry limits per workspace, including pending entries:
    • Free: 3
    • Starter: 10
    • Pro: 50

When you add a domain, the dashboard generates a unique verification token for that entry. Choose either the DNS TXT method or the well-known file method:

Create a TXT record at _submitowl-verify.<hostname> containing your verification token. Do not enter a wildcard in the dashboard — DNS verification automatically covers the verified hostname and all of its subdomains.

Example for example.com with placeholder TOKEN:

Host: _submitowl-verify.example.com
Type: TXT
Value: TOKEN

DNS TXT lookups use a 5-second timeout.

Serve your verification token as the exact response body at https://<hostname>/.well-known/submitowl-verify.txt. File verification covers only that exact hostname, not its subdomains.

Example for example.com with placeholder TOKEN:

URL: https://example.com/.well-known/submitowl-verify.txt
Body: TOKEN

Requirements for file verification:

  • Must be served over HTTPS on a hostname that resolves to public IP addresses; redirects are not followed.
  • Must return HTTP 200 with a non-empty body of at most 1 KB.
  • Response body must match the token exactly after trailing ASCII whitespace is trimmed.
  • DNS resolution and the HTTPS file request each have a separate 5-second timeout. The HTTPS timeout covers reading the response body, and the request uses User-Agent: SubmitOwlBot/1.0.

Verification is manual: add the domain, publish the DNS record or well-known file, and click Verify now in the dashboard.

  • Up to 10 verification checks per domain per workspace per hour.
  • DNS changes may take time to propagate before a check succeeds.
  • Verified domains are not periodically re-verified in the current release; a verified domain remains verified until you remove it.
  • If a check fails, common causes include a missing DNS record, a token mismatch, an HTTP redirect on the well-known URL, a non-200 HTTP status, an empty or over-1 KB file, or a connection or timeout failure.

Redirect target trust (_redirect and _next)

Section titled “Redirect target trust (_redirect and _next)”

For browser form posts, _redirect (and its alias _next) must be an HTTP(S) URL without credentials. Its hostname must match one of the following, regardless of the form’s origin mode:

  • The submitting page’s Origin hostname (or Referer hostname if Origin is absent)
  • The form’s configured redirect hostname
  • An entry’s hostname in the form’s Allowed origins list
  • A workspace verified domain hostname (including subdomains for DNS-verified domains, or exact hostname only for file-verified domains)

If the target is not allowed, SubmitOwl ignores _redirect / _next and sends the visitor to the form’s configured redirect URL, or to the built-in /thanks page if none is configured. In authenticated server mode, _redirect and _next remain ignored because responses are always JSON.