When I setup my datasource, I have an option for PROXY or DIRECT.
When using DIRECT, I have this error:
No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘myweburl.com:3000’ is therefore not allowed access. The response had HTTP status code 401.
When I use proxy, I have this error:
GET myweburl:3000/api/datasources/proxy/1/ 401 (Unauthorized)
I’m a little lost at this point. Any ideas or pointers?
I understand that, but I’m using the data source plugin “SimpleJSON”. The data is external from my system, therefore I need to send the correct headers to get around CORS. I’ve configured my NGINX with the proper headers (I thought at least), but it’s still not working.
Where should I be looking to fix this configuration?
How would I have NGINX around a service that I don’t own? Maybe I’m misunderstanding you.
Let’s say I’m calling nodequery’s API to see server stats. They own the API and Service, how could I control that? I’m calling the service fine via Postman and other 3rd party tools, but when I try with Grafana I get this CORS error. I fail to see it’s a “service” problem.