Resource Loading
crossorigin="use-credentials"
Requests CORS with credentials included, subject to cookie and browser policy. For cross-origin responses the server must allow the specific origin and credentials; wildcard origin is insufficient for credentialed CORS. CORS settings attribute on resource elements including img, script, link, audio and video. Empty or invalid means anonymous; missing behavior depends on the resource type. Example requires a resource with appropriate CORS response headers.
Formal Syntax & Structure
html syntaxhtml
crossorigin="use-credentials"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| crossorigin | keyword | Requests CORS with credentials included, subject to cookie and browser policy. For cross-origin responses the server must allow the specific origin and credentials; wildcard origin is insufficient for credentialed CORS. |
Working Example
Example Snippethtml
<img src="https://example.com/image.png" alt="Example asset" crossorigin="use-credentials">