Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idpiframe_initialization_failed #6

Closed
alwayslearning321 opened this issue Apr 17, 2018 · 4 comments
Closed

idpiframe_initialization_failed #6

alwayslearning321 opened this issue Apr 17, 2018 · 4 comments
Assignees

Comments

@alwayslearning321
Copy link

alwayslearning321 commented Apr 17, 2018

Hi,
I followed the instruction on https://developers.google.com/gmail/api/quickstart/js
1st problem is, there's no placeholder <YOUR_API_KEY> in the code as mentioned in the instruction.
2nd problem is, when run the quickstart.html page in Chrome (http:https://localhost:8000/quickstart.html) using Python 2.7 on windows 7 machine, it only shows the header "Gmail API Quickstart" and nothing else. With F12, in console it says:
Uncaught Object
details: "Cookies are not enabled in current environment."
error:"idpiframe_initialization_failed"

Screen dump attached.
I later tried the same code from Chrome on my MacBook and it worked. I also realised as the windows 7 machine is my work laptop, our corporate AD policy forced the "block third party cookies" setting to be enabled. Not sure if that's related?

gmail api quickstart error

@erickoledadevrel
Copy link

The Google Sign-in library requires that 3rd party cookies and data not be blocked by the browser:

https://developers.google.com/identity/sign-in/web/troubleshooting#third-party_cookies_and_data_blocked

More details are available in this thread:

google/google-api-javascript-client#260

Although the maintainer appears to be working on a partial solution, the recommendation at the moment is to either catch the error and alert the user or implement a server-side flow instead.

@erickoledadevrel erickoledadevrel self-assigned this Oct 18, 2018
@erickoledadevrel
Copy link

Closing due to inactivity.

@dsarkar99
Copy link

dsarkar99 commented Mar 24, 2020

Closing due to inactivity.

Sir,
Any solutions yet? 😢

My website:
http:https://readers-corner.delgradecorporation.in/login

Error ss:
Screenshot (27)

@alex-jitbit
Copy link

alex-jitbit commented Jul 16, 2020

Google sign in stops working in recent Chrome!

Because it disabled 3rd party cookies in incognito tab by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants