Auth0 Custom Domain with reverse proxy not working

Problem statement

This article explains a potential cause for a 403 Forbidden Cloudflare error when attempting to access a custom domain that uses Self-Managed certificates behind a reverse proxy.

  • When using the try button, the following error may occur: Error! Looks like your domain is not configured correctly. Please check your reverse proxy configuration.

Cause

A possible explanation for the 403 error could be that the Reverse Proxy is not using the Origin domain name that was assigned when setting up the custom domain as the host header .

Solution

Here is an example showing where to copy the correct value from in the tenant dashboard:

1 Like