CROSS_ORIGIN

enum
Media

Maps to the crossorigin HTML attribute for media elements (img, video, audio). Controls CORS credential behaviour when fetching the resource.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

CROSS_ORIGIN.ANONYMOUS
Sends a CORS request without credentials (cookies, certificates).
CROSS_ORIGIN.USE_CREDENTIALS
Sends a CORS request including credentials (cookies, client certificates).

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Loading an image from a CDN with CORS

vue