I'm in the process of developing a project for my degree, one of the requirements is to display volcanic activity on google maps. However I'm having CORS issues with this resource https://volcano.si.edu/database/webservices.cfm - There is nowhere else that I can find that provides this data, all other messageboards point to this same resource, but I am stumped at it.
I'm using their sample of 100 holocene volcanoes and going direct from their example I'm using this:
$(document).ready(function(){
$.ajax({
type: 'GET',
url: "https://webservices.volcano.si.edu/geoserver/GVP-VOTW/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=GVP-VOTW:Smithsonian_VOTW_Holocene_Volcanoes&maxFeatures=100",
dataType: 'xml',
success: function (data) {
console.log(data);
},
error: function (jqXHR, textStatus, errorThrown) {
console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
}
});
});
Recieving this result:
Access to XMLHttpRequest at 'https://webservices.volcano.si.edu/geoserver/GVP-VOTW/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=GVP-VOTW:Smithsonian_VOTW_Holocene_Volcanoes&maxFeatures=100' from origin 'http://127.0.0.1:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.