Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

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 Antworten
  • 1 hat dieses Problem
  • 20 Aufrufe
  • Letzte Antwort von FredMcD

Weitere Optionen

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

Alle Antworten (2)

Weitere Optionen

edit. It's crossOrigin:'anonymous'

Weitere Optionen

Ausgewählte Lösung