Enable to retrieve location details from geolocation API RRS feed

  • Question

  • Hello,

    I need to retrieve location details on the basis of latitude and longitude using following URL., -87.629802?o=json&key=<key>

    I am making this request from my localhost with browser. In the preflight request (OPTIONS) browser sends Origin header with value as locahost. I was expecting 'ACCESS-CONTROL-ALLOW-ORIGIN' header in the response. Since browser didn't receive it, subsequent GET request (which fetches actual data) was never sent. Therefore I am not able to consume above URL. I tried using different browsers like Chrome 62, Firefox 57.

    If doesn't returns that header then is there any alternative with which I can still retrieve the location details? 

    Thank you

    Friday, December 1, 2017 6:21 AM