I want to read data from a webpage and i followed below
$(document).ready(function() {
function url_content2(url) {
$.get(url)
}
var url2 = "https://javascript.info/?url=" + encodeURIComponent("https://www.psacard.com/cert/27333489/") + '&callback=?';
url_content2(url2, function(data) {
console.log(data);
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Taken references from Can Javascript read the source of any web page?
Cross-Origin Read Blocking (CORB)
How to stop CORB from blocking requests to data resources that respond with CORS headers? and
But In my case none of one worked
Might be the reason becuase it is not directly accesible check image Please help to get the webpage data