SVG attribute: crossorigin
SVG Elements
- A
- B-C
- D
- E
- F
<feBlend><feColorMatrix><feComponentTransfer><feComposite><feConvolveMatrix><feDiffuseLighting><feDisplacementMap><feDistantLight><feFlood><feFuncA><feFuncB><feFuncG><feFuncR><feGaussianBlur><feImage><feMerge><feMergeNode><feMorphology><feOffset><fePointLight><feSpecularLighting><feSpotLight><feTile><feTurbulence><filter><font><font-face><font-face-format><font-face-name><font-face-src><font-face-uri><foreignObject>
- G
- H
- I
- J-L
- M
- N-P
- Q-R
- S
- T
- U
- V-Z
The crossorigin attribute, valid on the <image> element, provides support for CORS, defining how the element handles crossorigin requests, thereby enabling the configuration of the CORS requests for the element's fetched data. It is a CORS settings attribute.
This table shows all possible keywords and their meaning:
| Keyword | Description |
|---|---|
anonymous |
CORS requests for this element will have the credentials flag set to 'same-origin'. |
use-credentials |
CORS requests for this element will have the credentials flag set to 'include'. |
"" |
Setting the attribute name to an empty value, like
crossorigin or crossorigin="", is the same as
anonymous.
|
It follows the same processing rules as the HTML attribute crossorigin.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Scalable Vector Graphics (SVG) 2 The definition of 'crossorigin attribute' in that specification. |
Candidate Recommendation |
Browser compatibility
BCD tables only load in the browser
Note: The above compatibility table is broken and needs fixing.