In my Google Chrome Extension, I want to store the page source of a URL input by the user in a string and then parse it.
I found similar questions and I tried the following methods:
var titleList = $.getJSON(URL);
Error: No 'Access-Control-Allow-Origin' header is present on the requested resource.
$.get(URL, function (response) {
alert(response)
});
Error: GET chrome-extension://lcacjlgephhfpadlaehfejnlkgpnacfg/www.google.com net::ERR_FILE_NOT_FOUND