I am using ArcGIS with JavaScript API and I am trying to get a proxy since some functionality requires specifically to install and set up a proxy. I have looked at the manual but it is a little bit hard for me to follow, I am a new developer and am using github as a server.
-
post the code where you're stuck , we'll see !Bourbia Brahim– Bourbia Brahim2016年04月12日 20:51:29 +00:00Commented Apr 12, 2016 at 20:51
1 Answer 1
GitHub doesn't let you host server side applications, so you cannot run your proxy there.
answered Apr 16, 2016 at 19:00
-
So what would you suggest to use?samira– samira2016年04月17日 22:09:33 +00:00Commented Apr 17, 2016 at 22:09
-
for your initial development you'll need to run a local web server. later you'll need a real web server on the public internet. these days more people use cloud services like AWS than administer their own physical machines. what exactly do you even need the proxy for?john gravois– john gravois2016年04月17日 22:36:28 +00:00Commented Apr 17, 2016 at 22:36
-
thanks for the help. I am learning Arcgis Api using javascript and when I use for spatial query for the data that is on arcgis server, the information is passed in the URL string, which has a limit of 2,048 characters. So I need to have a proxy on my computer to get around this problem. The documentation give some info about installing the proxy: developers.arcgis.com/javascript/jshelp/ags_proxy.html but I was not able to make it work,samira– samira2016年04月19日 14:43:35 +00:00Commented Apr 19, 2016 at 14:43
-
a proxy isn't necessary if both your instance of ArcGIS Server and the browsers consuming your application support CORS. if not, you'll need one.john gravois– john gravois2016年04月19日 15:48:43 +00:00Commented Apr 19, 2016 at 15:48
lang-js