Select to view content in your preferred language

CORS error while configuring ArcGIS Experience Builder 1.15 Dev Edition.

522
4
08-05-2024 07:46 AM
Yogesh_Chavan
Frequent Contributor

Hello,

We have installed ArcGIS Exp Builder 1.15, and tried configuring the same post installation.

This is the error received:

Your application domain is not allowed via Cross-Origin Resource Sharing (CORS) to access https://test.domain.com/portal

Yogesh_Chavan_0-1722868858525.png

We tried researching on the error, and did found some community post suggesting us to add the FQDN URL on portal security allow origins, and also tried using https://FQDN:3001/ as well, and seems like we are missing something.

Note:

  1. This is an Offline Ex-B installation
  2. This is a multi machine ENT deployment, and exp builder is installed on one of the datastore machines, and portal is in a different machine, both can communicate without any issues

Any suggestions and thoughts would be highly appreciated!

0 Kudos
4 Replies
Grant-S-Carroll
Esri Contributor
Hi Yogesh,

Try removing the trailing slash on the value you add to the allowed domains, eg not https://fqdn:3001/ but https://fqdn:3001

Cheers
Yogesh_Chavan
Frequent Contributor

Yes @Grant-S-Carroll, we have tried these checks. 

Can this be related to certificates? Or is there anything else triggering this?

0 Kudos
Grant-S-Carroll
Esri Contributor
If your cert for portal is. It trusted then this could an issue. If you look at the network request in the browser going out to check the portal location, then check what response values are in there. That might give you some more information.
Yogesh_Chavan
Frequent Contributor

Hello @Grant-S-Carroll,

We were able to bypass the CORS issue by bringing some missing node modules in the server installation directory of exp-builder dev edition.

BUT now we are facing issues with the next step. When we put in the portal URL and ClientID it takes us to the login(auth) and once we put in the creds it brings us back to the configuration page.

Not sure why its redirecting us to the same page again. What could be the issue?

0 Kudos