[Vuejs]-How do i make a fetch request to get search queries from suggestqueries.google.com, or get google suggestions in any other way?

0👍

You can’t make a request to another domain from the user’s browser, unless the source has the Access-Control-Allow-Origin header for your domain.
This can be bypassed by using a proxy, I used corsanywhere.
Input looks like this:

https://corsanywhere.herokuapp.com/http://suggestqueries.google.com/complete/search?client=chrome&q=cats

my new code was my original with this new link. I can access all of the data now.
(credit to aplet123)

Leave a comment