Video
Error: origin_mismatch (Google sign-in) fix
Error: origin_mismatch means the address serving your page does not match an Authorized JavaScript origin on your Google Cloud project, so "Sign in with Google" fails on your live site.
Video transcript
Error: origin_mismatch. "Sign in with Google" works in the preview, then fails on your live site. It means the address serving your page doesn't match an Authorized JavaScript origin in your Google Cloud project. Why it fails on the live address: only the preview address was ever registered. Your live address and custom domain were never added. Step 1. In Google Cloud, open the OAuth client your app uses, and find Authorized JavaScript origins. Step 2. Add your live origin: https plus the host, with no path. For example, https://example.com. Step 3. Add every address people use: the builder's published address, your custom domain, and both www and non-www if both open. Step 4. Save, then wait. Google says changes can take 5 minutes to a few hours. Then test again in a private window. Seeing redirect_uri_mismatch instead? That one points to a different list: Authorized redirect URIs. VibeFix (vibe-fixer.com): free check first.
Read the full guide: Error 400: origin_mismatch: Google sign-in fix