-
What Grafana version and what operating system are you using?
8.3.5, and the Grafana is begind a Ngnix -
What happened?
after upgrading from a 7.x version to 8.3.5, all dashboards are refusing to work, almost all of the pages are complaining: origin not allowed. -
What did you expect to happen?
dashboards work as before
I searched the internet, there are many tickets about this, and some of them give a workaround by adding
proxy_set_header Host $http_host;
the Ngnix conf:
server {
listen 80;
listen 443 ssl http2;
server_name _;
server_tokens off;
...
location /auth_request {
internal;
auth_request off;
proxy_pass http://managed-json/auth_request;
# nginx always strips body from authentication subrequests.
# Overwrite Content-Length to avoid problems on Go side and to keep connection alive.
proxy_pass_request_body off;
proxy_set_header Content-Length 0;
proxy_http_version 1.1;
proxy_set_header Connection "";
# This header is set only for to the second request, not for the first subrequest.
# That variable is set above.
proxy_set_header X-Must-Setup $auth_request_must_setup;
# Those headers are set for both subrequest and normal request.
proxy_set_header X-Original-Uri $request_uri;
proxy_set_header X-Original-Method $request_method;
}
# Grafana
rewrite ^/$ $scheme://$http_host/graph/;
rewrite ^/graph$ /graph/;
location /graph {
proxy_cookie_path / "/;";
proxy_pass http://127.0.0.1:3000;
rewrite ^/graph/(.*) /$1 break;
proxy_read_timeout 600;
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $http_host;
}
But still no luck, I also saw many people saying the same situation.
Could someone help with this? Thanks in advance.