HTML <video> crossorigin Attribute
Example
<video width="340" height="260" controls crossorigin="anonymous">
<source src="video.mp4" type="video/mp4">
<source src="video.webm" type="video/webm">
Your browser does not support the video tag.
</video>
Meaning
The crossorigin enumerated attribute specifies whether to use CORS to fetch the related video. CORS-enabled resources can be reused in the <canvas> element without being tainted.
Standard Syntax
<video crossorigin="anonymous|use-credentials">...</video>
Advertisement
Attribute Values
| Value | Description |
|---|---|
| anonymous | A Cross-Origin Resource Sharing request is sent with credentials omitted. |
| use-credentials | The Cross-Origin Resource Sharing request is sent with any credentials included. |