HTML DOM Video crossOrigin Property
The HTML DOM Video crossOrigin property is used to set or return the value of the crossorigin attribute of the <video> element. This attribute is used for specifying the HTTP CORS request when fetching or loading the stylesheet or icon files from the third-party server.
- It returns the cross-origin property.
- It is used to set the cross-origin property.
videoObject.crossorigin="anonymous | use-credentials;
- anonymous: It has a default value. It defines a CORS request will be sent without passing the credentials information
- use-credentials: A cross-origin request will be sent with credentials, cookies, and certificate.
Example 1: Below HTML code returns the video cross-origin property.
Supported Browsers: The browser is supported by DOM video crossOrigin Property are listed below:
- Google Chrome
- Internet Explorer