TRUSTEDDOMAINS (System Variable)

Specifies the domain names or URLs from which AutoCAD can run JavaScript code.

Type: String
Saved in: Registry
Initial value: Varies
Note: This system variable is primarily for use by Autodesk and 3rd party developers. Only AutoCAD JavaScript API calls are tracked-all other JavaScript calls are not tracked.

To minimize the possibility of loading and executing malicious code, always set the TRUSTEDDOMAINS system variable to unique Internet domain names or URLs for use by the AutoCAD JavaScript API, and HTML files that might contain AutoCAD JavaScript API calls. When TRUSTEDDOMAINS is set to "" (an empty string) or "." (a period), there are no trusted domains or URLs.

Any web page specified in TRUSTEDPATHS is always implicitly trusted.

Here are some examples of trusted domains that include wild-card characters:

*.autodesk.com/*                // trust anything from Autodesk
*.codeplex.com/site/MyProject/* // trust anything from a specified subdomain
https://144.111.123.123/*       // trust only the https protocol from a specified IP address

For information on wild-card characters, see Wild-Card Characters Reference.