Grafana采用Nginx反向代理,部分功能报错‘Origin not allowed’ behind proxy

只有部分功能会有这个提示,比如修改密码啥的,网上找了下,官方找到了答案:https://community.grafana.com/t/after-update-to-8-3-5-origin-not-allowed-behind-proxy/60598

有个回复是这样的:

tl:dr: try adding proxy_set_header Host $http_host; to your config above proxy_pass:

即:在代理的时候设置一下请求头,如下:

nginx 复制代码
location /grafana {
	proxy_pass http://127.0.0.1:3000/grafana;
	proxy_set_header Host $http_host;
}
相关推荐
珠海西格电力1 天前
零碳园区工业厂房光伏一体化(BIPV)基础规划
大数据·运维·人工智能·智慧城市·能源
泽02021 天前
Linux信号专题
linux·运维·服务器
chuxinweihui1 天前
数据链路层
运维·服务器·网络
天天进步20151 天前
【Linux 运维】告别 cat:如何按“时间段”优雅地截取日志文件?
linux·运维·服务器
遇见火星1 天前
Linux性能调优:理解CPU中的平均负载和使用率
linux·运维·服务器·cpu
Chennnng1 天前
Ubuntu 安装过程的 6 大常见问题类型
linux·运维·ubuntu
Evan芙1 天前
Linux 进程状态与进程管理命令
linux·运维·服务器
doris6101 天前
2025年设备管理系统:智能运维成新标杆
运维
qsjming1 天前
EXT4文件系统特性说明
运维
Joren的学习记录1 天前
【Linux运维进阶知识】Nginx负载均衡
linux·运维·nginx