# Google OAuth works on localhost, Chrome, and Brave but fails on Edge/Firefox after Vercel deployment — retained record

> Retained reddit record from reddit:webdev.

Canonical: https://highsignal.app/data/records/db53985d78174394

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:webdev)  published 2026-06-01 23:20 ingested 2026-06-02 10:08

[original source ↗](https://www.reddit.com/r/webdev/comments/1tu9dk2/google_oauth_works_on_localhost_chrome_and_brave/)

## extract

<!-- SC_OFF --><div class="md"><p>Hi everyone,</p> <p>I am facing a strange issue with Google OAuth after deploying my MERN application.</p> <p>My stack:</p> <ul> <li>Frontend: React + Vite (deployed on Vercel)</li> <li>Backend: Express + MongoDB (deployed on Render)</li> <li>Authentication: <a href="/u/react-oauth">u/react-oauth</a><code>/google</code> using <code>useGoogleLogin</code></li> </ul> <p>The issue:<br /> Google login works perfectly on my local development environment (<code>localhost</code>). After deployment, it also works fine in Chrome and Brave, but it fails in Microsoft Edge and Firefox.</p> <p>The console error says:</p> <blockquote> <p>GSI_LOGGER: Failed to open popup window. Maybe blocked by the browser?</p> </blockquote> <p>It seems the Google OAuth popup is getting blocked only in some browsers after deployment.</p> <p>Things I have already verified:</p> <ul> <li>Google OAuth Client ID is correct</li> <li>My Vercel domain is added in Authorized JavaScript origins</li> <li>Environment variables are properly configured on Vercel</li> <li>Backend APIs are working</li> <li>CORS is configured correctly</li> <li>Normal email/password authentication works</li> <li>The same implementation works in Chrome/Brave</li> </ul> <p>It looks like an issue with the popup-based OAuth flow rather than my backend.</p> <p>Has anyone faced this with <code>useGoogleLogin</code>?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Healthy-Fee8116"> /u/Healthy-Fee8116 </a> <br /> <span><a href="https://www.reddit.com/r/webdev/comments/1tu9dk2/google_oauth_works_on_localhost_chrome_and_brave/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/webdev/comments/1tu9dk2/google_oauth_works_on_localhost_chrome_and_brave/">[comments]</a></span>

## retained text

No document body was retained for this record — only its metadata was stored.
