Skip to content
PlatformMarkdown

Cross-origin calls

Let web pages you serve from your own origins call the realm's APIs from a browser, with or without the signed-in user's session.

A script or a tool of yours calls the realm’s APIs as Call the API describes, and needs nothing more. A web page needs one thing more: a browser lets a page read the realm’s answers only when the page comes from the realm’s own host name, or from an origin the realm lists. The dashboard is on the realm’s own host name; your own admin tool, status page or sign-in page usually isn’t.

You list each origin once, and choose whether its pages may act as the signed-in user. Whatever you list, every write must send JSON, and a write that rides the session cookie must come from an origin allowed to use it.

CapabilityWhat it gives you
Allowed originsThe origins whose pages may call the realm’s APIs, with or without the user’s session
Writes only as JSONEvery cross-origin write asks the realm first, so no form on another site can write
Session writes held to their originsA write carrying the session cookie is refused from any origin not allowed to use it
Browser appsThe OAuth endpoints’ own list, per client