Specifies the domain names or URLs from which AutoCAD can run JavaScript code.
Type: | String |
Saved in: | Registry |
Initial value: | Varies |
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.