I'm trying to get the source html for a page using just JS in chrome but it looks like that Same-Origin Policy won't let me.
I'm aware of how to set up a proxy, and how to build a scraper in any other language, but I'm trying to make a tool available that anyone can run easily by just opening an html file.
I just need to know if anyone knows of any way to fetch a url using plain JS or with some library that can be included in html and either setting the 'origin' header or removing it altogether since I think that would work as well.
If it's actually impossible then I get it, browsers wouldn't want to give you such an easy out for hijacking sites.