I have a custom basemap gallery in ArcGIS Enterprise Portal.
I created basemap in JavaScript running on https://localhost:4200 ( local development server).
const basemap = new Basemap({ portalItem: { id: "0560e29930dc4d5ebeb58c635c0909c9", portal: { url: "https://xyz.com/portal" } }});
How to setup allowedorigins in Enterprise Portal?
Thanks.
Forrest
Hey @ForrestLin
This document may help your cause!
https://enterprise.arcgis.com/en/portal/latest/administer/linux/restrict-cross-domain-requests-to-your-portal.htm
Cody
Hello @CodyPatterson
It doesn't work for localhost (https://localhost:4200).
Any chance you could use either your IP address or your computer/server Hostname to attempt and allow it?
Hey @CodyPatterson
I tried to use hostname and port (https://myhost:4200). It still doesn't work. I think because it's local development server.
Thank.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.