I use the Google Javascript library on my webpage, which runs on Python in the Google App Engine. Everything works fine if the user does not have third-party cookies disabled (in Chrome). The registrar opens an account (if applicable) and asks for permission, but nothing happens after that.
On the desktop, it returns to the registration page and shows the following error in the console:
Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.
However, I cannot detect this error, so I cannot answer it either. On a mobile phone, it just gets stuck on a white page. An additional problem here is that since I request offline access, the first registration returns a refresh_token. Due to this error, I never get this refresh_token.
The error mentioned above is immediately displayed when the page loads. I would like to detect this so that I can decide not to show the button and ask the user to enable third-party cookies.
source
share