grafana 报错 origin not allowed
nginx做反向代理访问grafana是会遇到origin not allowed这样的错误
只需要加个请求头
server {
listen 80;
server_name grafana.cc www.grafana.cc;
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:3000;
}
}
grafana 报错 origin not allowed
nginx做反向代理访问grafana是会遇到origin not allowed这样的错误
只需要加个请求头
server {
listen 80;
server_name grafana.cc www.grafana.cc;
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:3000;
}
}