SVGImageElement: crossOrigin property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since December 2023.

The crossOrigin property of the SVGImageElement interface is a string which specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image. It reflects the crossorigin content attribute of the given <image> element.

Value

A string which specifies the CORS mode used when fetching the image resource. Valid values are "anonymous" or "use-credentials". If the crossOrigin property is set to any other value, it is the same as specifying "anonymous".

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# __svg__SVGImageElement__crossOrigin

Browser compatibility

See also