# CSFR-fout bij het inloggen achter HA Proxy

**URL:** <https://meta.discourse.org/t/csfr-error-while-login-behind-ha-proxy/177168>\
**Category:** Self-hosting\
**Created:** [25 januari 2021 om 13:16 UTC](https://meta.discourse.org/t/csfr-error-while-login-behind-ha-proxy/177168 "2021-01-25T13:16:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![crospa91](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@crospa91](https://meta.discourse.org/u/crospa91)\
**Post date:** [25 januari 2021 om 13:16 UTC](https://meta.discourse.org/t/csfr-error-while-login-behind-ha-proxy/177168/1 "2021-01-25T13:16:28Z")

</div>

Hi guys, I hope this is the right section to ask for help about this.  
I recently changed the reverse proxy I have in front of the discourse server.  
I have a server with several discourse installed and a reverse proxy on front that point domains to the right web server.

I’ve used HA Proxy on both setup but the difference it’s the platform, before it was installed in PFSense, and now on OPNSense.

The reverse proxy works perfectly but if I try to login I get the CSFR error and can’t really do anything.

nothing have changed in the discourse setup and the HA Proxy configuration is copied over so should be fine.  
I’ve turned on XforwardFor and SSL but still discourse don’t seems to keep the same IP from the client but sees only the one from the proxy.

This the reddit post where I’ve asked support as well: [Reddit - Please wait for verification](https://www.reddit.com/r/OPNsenseFirewall/comments/l4ltxb/migration_from_pfsense_to_opnsense_ha_proxy/?utm_source=share&utm_medium=web2x&context=3)

---

_[View the full topic](https://meta.discourse.org/t/csfr-error-while-login-behind-ha-proxy/177168)._
