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 @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.
Hey @ForrestLin
Any chance you could use either your IP address or your computer/server Hostname to attempt and allow it?
Cody
Hello @CodyPatterson
It doesn't work for localhost (https://localhost:4200).
This document may help your cause!
https://enterprise.arcgis.com/en/portal/latest/administer/linux/restrict-cross-domain-requests-to-your-portal.htm
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.