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.
Allowed origins The origins whose pages may call the realm, and what each may do.
Browser apps Which origins may call the realm's OAuth endpoints, set per client.
Capabilities
Section titled “Capabilities”Let your pages in
Section titled “Let your pages in”| Capability | What it gives you |
|---|---|
| Allowed origins | The origins whose pages may call the realm’s APIs, with or without the user’s session |
| Writes only as JSON | Every cross-origin write asks the realm first, so no form on another site can write |
| Session writes held to their origins | A write carrying the session cookie is refused from any origin not allowed to use it |
| Browser apps | The OAuth endpoints’ own list, per client |