GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing developer.mozilla.org — crossorigin HTML attribute - HTML | MDN
|
| Element | Restrictions |
img, audio, video |
When resource is placed in <canvas>, element is marked as tainted.
|
script |
Access to error logging via window.onerror will be limited.
|
link |
Request with no appropriate crossorigin header may be discarded.
|
Note:
The crossorigin attribute is not supported for rel="icon" in Chromium-based browsers. See the open Chromium issue.
crossorigin with the <script> elementYou can use the following <script> element to tell a browser to execute the https://example.com/example-framework.js script without sending user-credentials.
<script
src="https://example.com/example-framework.js"
crossorigin="anonymous"></script>
The use-credentials value must be used when fetching a manifest that requires credentials, even if the file is from the same origin.
<link rel="manifest" href="/app.webmanifest" crossorigin="use-credentials" />
| Specification |
|---|
| HTML # cors-settings-attributes |