3 ms·
I looked at doing this using Javascript in a browser extension a while ago, and it's actually not possible to do for a couple of reasons: 1) XHR cross domain
by jluxenberg 16y ago
I looked at doing this using Javascript in a browser extension a while ago, and it's actually not possible to do for a couple of reasons:
1) XHR cross domain policy prohibits requests to domains other than the domain the page loaded from
2) the XHR GET method always follows a 301 redirect and returns the content at the URL. The full URL is not made available.
- RyanMcGreal 16y agoYou'd have to write something on your server that does this, and expose it to your client JS via a local URL.