Please enable JavaScript to view this site.

Version:

Navigation: Activities > Activity Reference

Register CORS URL Activity

Prev Top Next More

Description

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

Usage

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.

Inputs

Url

Required

Type: String

The URL of the server to register as CORS enabled.

With Credentials

Optional

Type: Boolean

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

The default value is false.

Outputs

success

Type: Boolean

Whether the server was successfully registered as CORS enabled.

Properties

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.

© 2024 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 5.42 (220a4365)