首页 文章

InfluxDB和Grafana跨域错误

提问于
浏览
2

当我尝试访问InfluxDB管理UI或通过Graphana时收到以下错误:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://54.zzz.xx.yyy:8086/cluster_admins/authenticate?u=abc&p=dec. This can be fixed by moving the resource to the same domain or enabling CORS.

请注意,只有当我尝试通过Internet连接时才会出现此错误,当我转到服务器本地网络并将上述公共IP更改为本地IP时,一切正常 .

现在我明白什么是跨域错误和CORS,我也得到了我需要启用CORS,因为在InfluxDB服务器中出现错误,点是我不知道该怎么做 .

InfluxDB位于AWS上的Ubuntu服务器14.something上 .

1 回答

相关问题