X
Tap here to go to the mobile version of the site.

Support Forum

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

Posted

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
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

More Information

Question owner

edit. It's crossOrigin:'anonymous'

edit. It's crossOrigin:'anonymous'
Was this helpful to you?
Quote
FredMcD
  • Top 10 Contributor
4398 solutions 61718 answers

Chosen Solution

I had no problem with http://nationalmap.gov/ There is security software like Avast, Kaspersky, BitDefender and ESET that intercept secure connection certificates and send their own. https://support.mozilla.org/en-US/kb/firefox-cant-load-websites-other-browsers-can https://support.mozilla.org/en-US/kb/firefox-and-other-browsers-cant-load-websites https://support.mozilla.org/en-US/kb/secure-connection-failed-error-message https://support.mozilla.org/en-US/kb/connection-untrusted-error-message [https://support.mozilla.org/en-US/kb/websites-dont-load-troubleshoot-and-fix-errors?redirectlocale=en-US&redirectslug=Error+loading+web+sites Websites don't load - troubleshoot and fix error messages] http://kb.mozillazine.org/Error_loading_websites [https://support.mozilla.org/en-US/kb/what-does-your-connection-is-not-secure-mean What do the security warning codes mean]
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.