I'm getting CORS Same origin error from https://nationalmap.gov elevation point service. Cross-Origin Request Blocked: The Same Origin Policy disallows reading
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
Giải pháp được chọn
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
Websites don't load - troubleshoot and fix error messages
http://kb.mozillazine.org/Error_loading_websites
What do the security warning codes mean
Đọc câu trả lời này trong ngữ cảnh 👍 0Tất cả các câu trả lời (2)
edit. It's crossOrigin:'anonymous'
Giải pháp được chọn
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
Websites don't load - troubleshoot and fix error messages