Add google account without using iframe

I am trying to add Google Sign-in to my site following the official documentation . It works fine except when I select the "Block third party cookies and site data" option in Chrome settings

chrome: // settings / content

in this case a JavaScript error is generated with an error message

Uncaught SecurityError: Failed to read the 'sessionStorage' property  from 'Window': Access is denied for this document.

      

The error occurs in the iframe that the Google Auth API is trying to load for the login button.

Is there a way to make it work even if I keep the third party cookie option you choose ? Maybe there is a way to customize the google button so that it doesn't use an iframe? Quora seems to have a similar setup and they don't use iframe. How do they do it?

+3


source to share





All Articles