How to setup allowedorigins for local development server in ArcGIS Enterprise Portal

208
4
3 weeks ago
ForrestLin
Occasional Contributor

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://xxx.com/portal"
        }
    }
});

How to setup allowedorigins in Enterprise Portal?

Thanks.

Forrest

 

 

0 Kudos
4 Replies
CodyPatterson
Occasional Contributor III
0 Kudos
ForrestLin
Occasional Contributor

Hello @CodyPatterson 

It doesn't work for localhost (https://localhost:4200).

Thanks.

Forrest

 
0 Kudos
CodyPatterson
Occasional Contributor III

Hey @ForrestLin 

Any chance you could use either your IP address or your computer/server Hostname to attempt and allow it?

Cody

0 Kudos
ForrestLin
Occasional Contributor

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.

Forrest

0 Kudos