# How to use FIDO2 with Discourse behind a reverse proxy?

**URL:** <https://meta.discourse.org/t/how-to-use-fido2-with-discourse-behind-a-reverse-proxy/291071>\
**Category:** Self-hosting\
**Created:** [January 9, 2024, 8:07pm UTC](https://meta.discourse.org/t/how-to-use-fido2-with-discourse-behind-a-reverse-proxy/291071 "2024-01-09T20:07:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [January 9, 2024, 8:24pm UTC](https://meta.discourse.org/t/how-to-use-fido2-with-discourse-behind-a-reverse-proxy/291071/2 "2024-01-09T20:24:29Z")

</div>

Is this on a dev environment? You might need to override this bit temporarily:

> <https://github.com/discourse/discourse/blob/main/lib/discourse_webauthn.rb#L84-L100>

And it is also likely helpful to use the `--forward-host` flag when running the server, i.e. `bin/ember-cli -u --forward-host`.

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-fido2-with-discourse-behind-a-reverse-proxy/291071)._
