-1👍
Axios use for sent HTTP request, set ‘Access-Control-Allow-Origin’ header on a request is meaningless.
In response, the server sends back an Access-Control-Allow-Origin
header with Access-Control-Allow-Origin: *, which means that the
resource can be accessed by any origin.
enter link description here
So, to allow CORS, the server-side need to add Access-Control-Allow-Origin: * within its HTTP response.
But, it seems the response is from google API in your case, I think such service should already allow cross-origin access, could you please produce detailed error output?
Source:stackexchange.com