The crossOrigin property of the HTMLScriptElement interface reflects the CORS settings for the script element.
crossOrigin
MDN Reference