You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change url in index.html therein to point to a remote instance, it can be http://localhost:8086
Try to write or query data using the buttons on the page Expected behavior:
It works.
Actual behavior:
It fails with:
Access to fetch at 'http://localhost:8086/api/v2/query?org=my-org' from origin 'http://localhost:3001' has been blocked by CORS policy: Response to preflight request doesn't 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.
Environment info:
System info: any
InfluxDB version: 1.8.0, the 2020-06-08 master1.x does not work as well
The text was updated successfully, but these errors were encountered:
The CORS handling is not implemented for
/api/v2/query
endpoint of InfluxDB v1.Steps to reproduce:
browser
example from https://github.com/influxdata/influxdb-client-js/tree/master/examplesindex.html
therein to point to a remote instance, it can behttp://localhost:8086
Expected behavior:
It works.
Actual behavior:
It fails with:
Environment info:
The text was updated successfully, but these errors were encountered: