Origin not allowed after upgrade to 9.1.6

Hi,
Just upgraded Grafana from 8.2.5 → 9.1.6 and all my dashboards are complaining about an Origin not allowed error. I’m using Nginx 1.18 by the way.
Looking into community.grafana.com forum, found out several requests about this, and a fix seems to be adding proxy_set_header Host $http_host; into Nginx config file.
However in my case it doesn’t work, the same error still showing up.
Any ideas?

Haven’t found a fix for this yet…
Any ideas?

Hi @robertojobet,

Welcome to the :grafana: community support forums !!

Regarding your query, yes this error is normally related to the Nginx/Apache proxy configuration. We do have this active post where many users had asked about it and got very good answers for resolution.

We suggest that you also check there and ask there too if in case their solution does not work.

Let us know if this helps.

This the full code of apache:

        ProxyPreserveHost On
        ProxyRequests Off
        ServerName www.example.com
        #ServerAlias example.com
        ProxyPass / http://localhost:3000/
        ProxyPassReverse / http://localhost:3000/

And don’t forget to run :

sudo a2enmod proxy && sudo a2enmod proxy_http && sudo service apache2 restart