. I do see treatments (carbs etc) and I do still see data at <my-url>/api/v1/treatments.json . I'm also getting an xDrip error saying that it can't add values to the database. But I'm not sure what's causing the xDrip error, and it doesn't just seem to be a data upload problem - old BGL entries have vanished too
I'm trying to access the nightscout endpoints via the rest api, as described in:
I have set "cors" in the "ENABLE" variable, and also set CORS_ALLOW_ORIGIN : "*" variable and now I'm trying to access the ..../api/v1/experiments/test with axios sending the "API-SECRET" header with the api secret in the form of sha1, but I'm getting:
Access to XMLHttpRequest at 'https://<myname>.herokuapp.com/api/v1/experiments/test' from origin 'http://localhost:8081' has been blocked by CORS policy: Request header field api-secret is not allowed by Access-Control-Allow-Headers in preflight response.
Any ideas, does this look like a bug of the "API-SECRET" not being in the list of allowed headers in:
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, Content-Length, X-Requested-With');