I'm trying a relatively simple thing. I have the following link.
<a href={`https://www.google.com/search?q=rotten+tomatoes+${movie.title}+${movie.year}+review&btnI=`}>
Which leads me to a Google Redirect. The page this link lands on has a simple url:
https://www.google.com/url?q={THE_URL_I_WANT}
I'm trying to find a way to get the above url as a response to my click, after which I would be able to remove the "https://www.google.com/url?q=" part and then link to the actual URL I need.
Is this possible?
PS.
I've searched quite a bit but it appears to be very hard to bypass the redirect. Now I know there's stuff you can try with a service worker, or trying add headers with cors or even fake the request from a proxy but so far I have not managed and a lot of posts I find are either deprecated or a bit too complicated for something I hope can be done very simply.
EDIT
As per the last post on this solution, it was just a matter of allowing CORS for my localhost in Chrome.