TCrossOrigin
type
Media
CORS mode for cross-origin media requests — mirrors the native crossorigin attribute on <img>, <video> and <audio> elements.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Accepted
Values
Accepted string literal values for this type. Click a value to copy it.
- No CORS request is sent — the resource is fetched without credentials (equivalent to omitting the attribute).
- anonymous
- CORS request sent without credentials (cookies, HTTP authentication). The server must respond with Access-Control-Allow-Origin: * or the requesting origin.
- use-credentials
- CORS request sent with credentials (cookies, client certificates). The server must respond with Access-Control-Allow-Credentials: true and a specific origin.
Ecosystem
Used by
Components and props that accept this type as a value.
Usage
Examples
Ready-to-paste code snippets using this type.
Image loaded with anonymous CORS for canvas access