# Redirect URI mismatch in Google Auth

**URL:** https://meta.discourse.org/t/redirect-uri-mismatch-in-google-auth/123152
**Category:** Support
**Created:** [July 17, 2019, 3:27am UTC](https://meta.discourse.org/t/redirect-uri-mismatch-in-google-auth/123152 "2019-07-17T03:27:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![RobinD42](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robind42/32/148868_2.png) [@RobinD42](https://meta.discourse.org/u/RobinD42)
#### Post date: [July 17, 2019, 4:06am UTC](https://meta.discourse.org/t/redirect-uri-mismatch-in-google-auth/123152/2 "2019-07-17T04:06:55Z")

</div>

Solved it! 😂 🕺

in case anybody else runs into this problem I found the solution here: [[HELP] Cannot login, error shows "BAD CSRF" - #25 by daxen](https://meta.discourse.org/t/help-cannot-login-error-shows-bad-csrf/52424/25)

I added this:

```plaintext
RequestHeader set X-Forwarded-Proto "https"

```

to the vhost config for the ssl site so the `X-Forwarded-Proto` header will be passed on to Discourse.

---

_[View the full topic](https://meta.discourse.org/t/redirect-uri-mismatch-in-google-auth/123152)._
