SVG
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
Browser compatibility
See also
- HTMLImageElement.crossOrigin
- HTMLMediaElement.crossOrigin
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
