# Origin not allowed after upgrade to 9.1.6

**URL:** <https://community.grafana.com/t/origin-not-allowed-after-upgrade-to-9-1-6/73358>\
**Category:** Installation\
**Tags:** reverse-proxy, nginx\
**Created:** [September 30, 2022, 11:45am UTC](https://community.grafana.com/t/origin-not-allowed-after-upgrade-to-9-1-6/73358 "2022-09-30T11:45:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertojobet](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@robertojobet](https://community.grafana.com/u/robertojobet)\
**Post date:** [September 30, 2022, 11:45am UTC](https://community.grafana.com/t/origin-not-allowed-after-upgrade-to-9-1-6/73358/1 "2022-09-30T11:45:23Z")

</div>

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](http://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?

---

<div class="post-metadata">

**Author:** ![robertojobet](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@robertojobet](https://community.grafana.com/u/robertojobet)\
**Post date:** [October 3, 2022, 3:01pm UTC](https://community.grafana.com/t/origin-not-allowed-after-upgrade-to-9-1-6/73358/2 "2022-10-03T15:01:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [December 7, 2022, 6:28am UTC](https://community.grafana.com/t/origin-not-allowed-after-upgrade-to-9-1-6/73358/3 "2022-12-07T06:28:38Z")

</div>

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](https://community.grafana.com/t/after-update-to-8-3-5-origin-not-allowed-behind-proxy/60598) 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.

---

<div class="post-metadata">

**Author:** ![leandroximenes](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@leandroximenes](https://community.grafana.com/u/leandroximenes)\
**Post date:** [March 7, 2024, 7:12pm UTC](https://community.grafana.com/t/origin-not-allowed-after-upgrade-to-9-1-6/73358/4 "2024-03-07T19:12:20Z")

</div>

This the full code of apache:

```bash
        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 :

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

```
