Configure CORS origins
Version:
Universal Tracker supports Cross-origin resource sharing (CORS) out of the box. By default, all origins are allowed. To configure which origins are allowed:
-
Use a Sitecore Host patch file to update the AllowedOrigins settings in the
sitecorehost.xmlconfiguration file. For example:
To allow all origins, set AllowedOrigins to *. To deny all origins, set AllowedOrigins to Null.
Note
Calls from the site where you have deployed Universal Tracker are always allowed, even if you set AllowedOrigins to Null.
If you have suggestions for improving this article, let us know!