# Getting access\_denied → missing\_host after switching to new custom domain for Google/Apple login

**URL:** <https://community.auth0.com/t/getting-access-denied-missing-host-after-switching-to-new-custom-domain-for-google-apple-login/193232>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [October 15, 2025, 7:15pm UTC](https://community.auth0.com/t/getting-access-denied-missing-host-after-switching-to-new-custom-domain-for-google-apple-login/193232 "2025-10-15T19:15:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gedeon.u](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gedeon.u/32/72254_2.png) [@gedeon.u](https://community.auth0.com/u/gedeon.u)\
**Post date:** [October 15, 2025, 7:15pm UTC](https://community.auth0.com/t/getting-access-denied-missing-host-after-switching-to-new-custom-domain-for-google-apple-login/193232/1 "2025-10-15T19:15:17Z")

</div>

Hi everyone,

I’m in the process of migrating to a new Auth0 custom domain.

Previously, with the deactivated domain, I was seeing a **“wrong redirect uri”** error. I updated the redirect URI in both **Google** and **Apple** developer consoles to match the new custom domain:

```auto
https://new-custom-domain-name/login/callback

```

Now, instead of the wrong redirect URI message, I’m getting this error during Google login:

```auto
{
  "error": "access_denied",
  "error_description": "missing_host"
}

```

And here’s the corresponding Auth0 log entry:

```auto
{
  "date": "2025-10-15T18:55:05.008Z",
  "type": "f",
  "description": "missing_host",
  "connection": "google-oauth2",
  "connection_id": "",
  "client_id": "my-client-id",
  "client_name": "my-client-name",
  "ip": "159.48.52.103",
  "user_agent": "Chrome 141.0.0 / Mac OS X 10.15.7",
  "details": {
    "body": {},
    "qs": {
      "state": " ****************************"
    },
    "connection": "google-oauth2",
    "error": {
      "message": "missing_host",
      "oauthError": "access_denied",
      "type": "oauth-authorization"
    },
    "session_id": "id",
    "actions": {
      "executions": [
        ""
      ]
    },
    "stats": {
      "loginsCount": 9
    }
  },
  "hostname": "new-custom-domain-name",
  "user_id": "google-oauth2|userID",
  "user_name": "USER@gmail.com",
  "strategy": "google-oauth2",
  "strategy_type": "social",
  "audience": "Audience",
  "scope": [
    "openid",
    "profile",
    "email",
    "offline_access",
    "read:current_user",
    "update:current_user_metadata"
  ],
  "$event_schema": {
    "version": "1.0.0"
  },
  "environment_name": "prod-us-4",
  "log_id": "id",
  "tenant_name": "dev-tenant",
  "_id": "id",
  "isMobile": false,
  "location_info": {},
  "id": "id"
}

```

Everything else (client\_id, audience, scopes, DNS, etc.) seems correctly configured, and the domain resolves fine. This only started happening right after updating to the new custom domain and updating redirect URIs in the Google/Apple console.

Has anyone encountered the **`missing_host`** error after switching a social connection to a new custom domain? Is there an additional step required on Auth0 or social provider side after changing the domain?

Any guidance or hints on what I might have overlooked would be appreciated!

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [October 17, 2025, 6:16pm UTC](https://community.auth0.com/t/getting-access-denied-missing-host-after-switching-to-new-custom-domain-for-google-apple-login/193232/3 "2025-10-17T18:16:56Z")

</div>

Hi @gedeon.u

Could you please let me know if you are using any kind of reverse proxy for your custom domain?

Also, is the **Origin Domain Name** assigned to your custom domain the one used for the **host** header?

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [October 31, 2025, 7:46pm UTC](https://community.auth0.com/t/getting-access-denied-missing-host-after-switching-to-new-custom-domain-for-google-apple-login/193232/4 "2025-10-31T19:46:50Z")

</div>

Since I haven’t heard from you for a while @gedeon.u , I will be marking the above reply as the solution to the thread.

If you will still need assistance on this matter, please send me a DM to reopen to the topic if it gets closed or just reference this one in your new one!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 14, 2025, 7:46pm UTC](https://community.auth0.com/t/getting-access-denied-missing-host-after-switching-to-new-custom-domain-for-google-apple-login/193232/5 "2025-11-14T19:46:57Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
