Select to view content in your preferred language

Problem with FeatureLayer url after using a reverse proxy.

515
0
03-30-2021 05:02 AM
BoualiKamel
Emerging Contributor

Hi all,

I don't know if it's really a problem, i think that there is a problem after declaring the url in the featurelayer class when using the reverse proxy, nginx or apache, or a local devserver proxy.

For example i have this configuration of proxy the path 

      "/gis" targetting the "https://localhost:6443" link
 
the declaration of my featurelayer is like this 

 

 

  new FeatureLayer({
    url: "gis/arcgis/rest/services/geo/MapServer/0",
    title:'point',
  }),

 

nothing is displayed on the map, so i followed my network on the browser and I noticed that the id of my featurelayer is duplicated on the link
 
 
the 0 in the link is duplicated 
so i would like if this is normal
 
cordially

 

 
 
 
 
 
 
0 Kudos
0 Replies