---
title: HTMLMediaElement.crossOrigin
slug: Web/API/HTMLMediaElement/crossOrigin
tags:
  - API
  - HTML DOM
  - HTMLMediaElement
  - Property
  - Web
browser-compat: api.HTMLMediaElement.crossOrigin
---
{{APIRef("HTML DOM")}}

The **`HTMLMediaElement.crossOrigin`** property is the CORS setting for this image element. See [CORS settings attributes](/en-US/docs/Web/HTML/Attributes/crossorigin) for details.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- The interface defining it, {{domxref("HTMLMediaElement")}}.
