Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

I'm getting CORS Same origin error from https://nationalmap.gov elevation point service. Cross-Origin Request Blocked: The Same Origin Policy disallows reading

  • 2 uphendule
  • 1 inale nkinga
  • 56 views
  • Igcine ukuphendulwa ngu FredMcD

more options

Works fine on Chrome and IE. I have some code that makes a request to nationalmap.gov . It's a service, so it should be allowed from their server.

$http({

           url: "https://nationalmap.gov/epqs/pqs.php?x="+coord[0]+"&y="+coord[1]+"?units=Feet&output=json",
           method: "GET",
           crossOrigin:true
   	}).then(successCallback, errorCallback);

URL: https://nationalmap.gov/epqs/pqs.php?x=-77.05355372624011&y=38.8977679652815?units=Feet&output=json

Works fine on Chrome and IE. I have some code that makes a request to nationalmap.gov . It's a service, so it should be allowed from their server. $http({ url: "https://nationalmap.gov/epqs/pqs.php?x="+coord[0]+"&y="+coord[1]+"?units=Feet&output=json", method: "GET", crossOrigin:true }).then(successCallback, errorCallback); URL: https://nationalmap.gov/epqs/pqs.php?x=-77.05355372624011&y=38.8977679652815?units=Feet&output=json

All Replies (2)

more options

edit. It's crossOrigin:'anonymous'

more options

Isisombululo Esikhethiwe