Currently I need to obtain the metadata with a given URL from javascript, but I always have the CORS problem.
With the following code I can read the metadata of the own page but I am interested in being able to obtain the information from an external page.
<script>
function metaDatos() {
var x = document.getElementsByTagName("META");
var txt = "";
var i;
for (i = 0; i < x.length; i++) {
txt = txt + "Content of "+(i+1)+". meta tag: "+x[i].content+"<br>";
}
document.getElementById("demo").innerHTML = txt;
}
</script>
Greetings! To see if someone can help me with the subject of the requests ..:)