web api instance property
HTMLLinkElement: crossOrigin property
The crossOrigin property of the HTMLLinkElement interface specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the resource.
Value
A string of a keyword specifying the CORS mode to use when fetching the resource. Possible values are:
anonymousor the empty string ("")- : Requests sent by the
HTMLLinkElementwill use thecorsmodeand thesame-origincredentialsmode. This means that CORS is enabled and credentials are sent if the resource is fetched from the same origin from which the document was loaded.
- : Requests sent by the
use-credentials- : Requests sent by the
HTMLLinkElementwill use thecorsmodeand theincludecredentialsmode. All resources requests by the element will use CORS, regardless of what domain the fetch is from.
- : Requests sent by the
If the crossOrigin property is specified with any other value, it is the same as specifying as the anonymous.
If the crossOrigin property is not specified, the resource is fetched without CORS (the no-cors mode and the same-origin credentials mode).
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.