Google Sign-In: Origin check

Use this page from the same URL you use when you see “Error 400: origin_mismatch”.

Add this exact value in Google Cloud Console → APIs & Credentials → your OAuth 2.0 Web client → Authorized JavaScript origins → ADD URI:

Click to copy

Important: Use Authorized JavaScript origins, not "Authorized redirect URIs". They are different sections.

Steps:

  1. Open Google Cloud Console → Credentials.
  2. Click your Web application OAuth 2.0 client (under OAuth 2.0 Client IDs).
  3. Scroll to Authorized JavaScript origins. Click + ADD URI.
  4. Paste the value above only (no path, no trailing slash). Click Save.
  5. Wait 1–2 minutes, then try Sign in with Google again from the same URL you used to open this page.

If you use both https://www.trusted-doctor.com and https://trusted-doctor.com, open this page from each and add both origins.