Register CORS URL Activity


The Register CORS URL activity registers a server as Cross Origin Resource Sharing (CORS) enabled in the ArcGIS API for JavaScript.


Many activities like Query Layer and Geocode use the ArcGIS API for JavaScript to send HTTP requests. When a request is for a resource on a different domain than the current application, it is a cross origin request. The ArcGIS API for JavaScript maintains a white list of servers that it is able to issue cross origin requests to. The Register CORS URL activity allows a workflow to add servers to this list as well as automatically enable CORS (with or without credentials) if it is disabled in the ArcGIS API for JavaScript. A workflow could use the Register CORS URL activity before an activity that issues a web request to an ArcGIS service on a different domain to enable communication via CORS.




Type: String

The URL of the server to register as CORS enabled.

With Credentials


Type: Boolean

Whether or not the server that is being registered supports credentials.

The default value is false.



Type: Boolean

Whether the server was successfully registered as CORS enabled.


For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4, VertiGIS Studio Web Viewer 5.0.