when I copy and paste the code in my editor and run it, the console displays an error, don’t know what is going on:
Access to XMLHttpRequest at ‘https://google-maps-geocoding.p.rapidapi.com/geocode/json?language=en&address=164 Townsend St.%2C San Francisco%2C CA’ from origin ‘null’ has been blocked by CORS policy: The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Únase a la conversación, añada un comentario a continuación:
Facing the same issue