Security & Reliability

Allowed Origins (Origin Allowlist)

Direct Definition

Allowed origins are a configured list of website domains permitted to call an API from a browser. The server or gateway checks the Origin header of each request and only returns CORS permission headers, or accepts the request, when the origin is on the allowlist.

Technical Architecture & Deep-Dive

Browsers attach an Origin header to cross-site requests. By validating it, an edge gateway ensures a client token embedded in `https://myapp.com` cannot be reused by a different website.

Origin checks are a strong browser-side control but not a complete defense, because non-browser clients can forge headers. Combine allowlists with rate limiting, scoped tokens, and bot protection for layered security.

Key Architectural Benefits

Prevents other websites from reusing your client tokens.
Controls CORS responses precisely per domain.
Simple configuration with strong browser enforcement.
REALCOMPOSER EDGE WORKSPACE

Implement Allowed Origins (Origin Allowlist) at the Edge

Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.

START BUILDING FREE

Frequently Asked Questions

Q:Can attackers spoof the Origin header?

Browsers do not allow scripts to change it, but scripts and servers outside a browser can. Treat origin checks as one layer, not the only one.

Related Architecture Concepts

Ready-to-Use Edge Recipes