question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In Chrome, works regularly but not in Incognito Mode

See original GitHub issue

I have this google login configuration <GoogleLogin clientId={GOOGLE_CLIENT_ID} onSuccess={responseGoogle} onFailure={responseGoogle} accessType='offline' responseType='code' prompt='select_account' uxMode='redirect' redirectUri='http://localhost:3000/workspace/' render={(renderProps) => ( <button className='GoogleSignInButton Primary' onClick={renderProps.onClick} disabled={renderProps.disabled}> <FcGoogle size={24} className='GoogleIcon' /> Sign In with Google </button> )} />

It works regularly in Google Chrome, but when I try it in Incognito mode, I keep getting this error: popup_closed_by_user.

Any idea why it would work regularly but not in Incognito Mode?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:24
  • Comments:17

github_iconTop GitHub Comments

13reactions
exanderscommented, Sep 29, 2020

For those having this error in incognito mode:

{error: "idpiframe_initialization_failed", details: "Cookies are not enabled in current environment."}

This is actually caused by the browser blocking third party cookies, so you have to handle this error and/or display the user a proper explanation on how to allow them.

On Chrome by clicking the eye showing up in the address bar, you should be able to toggle that after clicking the text in blue:

blocked3pc

4reactions
Gherciucommented, Jul 23, 2021

image

To fix this issue in Google we need to go to Settings…Search for cookies and then as shown in the photo enable third-party cookies in incognito mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Chrome only works in Incognito Mode on Windows 11/10
One problem which users may face is finding out that the Google Chrome browser works in Incognito Mode and not in the normal...
Read more >
Webpage displayed in Incognito, not in regular Chrome
My application was working in Incognito mode and in Firefox but not in Regular Chrome. I even disabled all the extensions but no...
Read more >
How to get a website to work in regular chrome tab? currently ...
I've successfully logged in to website in other browsers and chrome incognito tab but not the regular tab. I've checked for updates and...
Read more >
Incognito Mode May Not Work the Way You Think It Does
No matter which browser you prefer—Chrome, Firefox, Edge, Safari, Opera, or any of the others—it will almost certainly offer an incognito or ...
Read more >
Fix Chrome only works in Incognito Mode on Windows 10
One problem which Google Chrome may face is finding out that the browser works in Incognito Mode and not in the normal mode....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found