1

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.

1
  • post the code where you're stuck , we'll see ! Commented Apr 12, 2016 at 20:51

1 Answer 1

2

GitHub doesn't let you host server side applications, so you cannot run your proxy there.

https://stackoverflow.com/questions/15718649/how-to-publish-a-website-made-by-node-js-to-github-pages

4
  • So what would you suggest to use?
    – samira
    Commented 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? Commented 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
    Commented 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. Commented Apr 19, 2016 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.