'CORS policy blocking request to GeoLite2 web services
const { data: geoLocationData } = useSWR(
!acceptedLocation ? 'https://geolite.info/geoip/v2.1/country/me' : null,
fetchWithToken,
{
shouldRetryOnError: false
}
);
Cors Policy error doesn't allow me to request from GeoLite2 API According to their documentation, the only thing needed is the Authentication header, already set up.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
