New answers tagged

3

Basically you just need a PHP script that acts as a middle man and does the fetching for you, then returns what it gets directly to the client. I converted your JS snippet above into the relevant parts below. Notice that the url in your Leaflet tileLayer example has been changed to a PHP endpoint with URL parameters: ?s={s}&z={z}&x={x}&y={y} ...


1

GitHub doesn't let you host server side applications, so you cannot run your proxy there. http://stackoverflow.com/questions/15718649/how-to-publish-a-website-made-by-node-js-to-github-pages



Top 50 recent answers are included