Hello.
I am brand new with influxdb. I wanted to write here first before opening an issue in github. Because I think the problem should be with me.
I want to develop a small web app (with React) and looked here first: Getting Started with JavaScript and InfluxDB 2.0
First I thought I’d just start with something simple and query the health (as described in “getting started”. I develop on one machine and my influxdb is on another server. I get a CORS error.
Access to fetch at 'http://192.168.1.148:8086/health' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request does not pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I have already looked on github. I really can’t figure it out.
This should just work, shouldn’t it?
Many thanks for help. Regards.