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.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Apr 11, 2016 at 23:01
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

answered Apr 16, 2016 at 19:00
4
  • So what would you suggest to use? 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, 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

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.