ERROR

The <service type> service, <service URL>, cannot be added to the map. It's either not available or you have entered an invalid URL for the type of layer you want to reference

Last Published: September 2, 2020

Error Message

When adding a service to Map Viewer in Portal for ArcGIS, the following error is returned:

Error:   
The  <service type> service, <service URL>, cannot be added to the map. It's either not available or you have entered an invalid URL for the type of layer you want to reference.
Image showing the error when adding the service in the portal website.

The Console tab in the developer tools of the browser also shows the following error:

Error:   
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
Image showing the error in the Console tab of the developer tools in the browser.

Cause

The host name of the service is added as a trusted server in the organization's security settings. This caused the credentials to be sent when making Cross-Origin Resource Sharing (CORS) requests to access services secured with web-tier authentication. The credentials are incompatible with the CORS header present in the service by default.

Solution or Workaround

Remove all servers from the Trusted Servers section if web-tier authentication is not used. To remove a server in Trusted Servers, follow the steps below:

  1. Log in to the portal website as an administrator or a custom role with the privilege to manage security enabled.
  2. Click Organization at the top of the website, and click the Settings tab.
  3. Click Security on the left side of the page.
  4. Navigate to the Trusted Servers section, click the Delete Server icon at the end of a server.
Image showing the Delete Server icon in the Trusted Servers section of the Security page.
  1. Repeat Step 4 for each server.
  2. Click Save at the bottom of the Security page.

Article ID:000023821

Software:
  • Portal for ArcGIS

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic