AirGradient Forum

API CORS issue on call GET

Hi everyone,

I’m developing a small vanilla JavaScript module for an association’s website to display data from three weather stations.

When I GET the API with axios using the token (example: https://api.airgradient.com/public/api/v1/locations//measures/current?token=), I get a CORS error.

What can I do to resolve this?

Florian