美文网首页收藏
Grafana Origin not allowed

Grafana Origin not allowed

作者: 五月笑忘 | 来源:发表于2022-07-25 17:52 被阅读0次

上周 Grafana 工作没有任何问题,但更新到 8.3.5 后我无法再登录。
在登录屏幕中,输入我的用户名和密码后,会出现一条消息:“Origin not allowed”。 在 grafana.log 文件中,我看到一行:
lvl=eror msg="无法根据 cookie 查找用户" logger=context error="未找到用户令牌"

解决方案:

在nginx的conf.d文件中,有一个grafana.conf的文件,需要在配置文件中增加

proxy_set_header Host $http_host; //added after upgrade from 8.1 to 8.4.1 for origin not allowed error

但是发现还是不行,看到说可以把$http_host改成自己的domain,于是尝试下

proxy_set_header Host domain.com

最后重启nginx

sudo systemctl restart nginx
sudo systemctl status nginx

然后刷新页面,登录,可以进去了

相关文章

网友评论

    本文标题:Grafana Origin not allowed

    本文链接:https://www.haomeiwen.com/subject/tftnirtx.html