3

Refused to display 'https://accounts.google.com/o/oauth2/auth?client_id=******' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

click here to see the chrome console error

while Executing googleApiClientReady() code in auth.js

  // Upon loading, the Google APIs JS client automatically invokes this callback.
    googleApiClientReady = function() {
      gapi.auth.init(function() {
        window.setTimeout(checkAuth, 1);
      });
    }

1 Answer 1

1

try something like

gapi.auth.authorize({ client_id: clientId, scope: scopes, immediate: immediate }, handleAuthResult);

1
  • in Question : window.setTimeout(checkAuth, 1); doing already like that in chechAuth method as same as what you mentioned. Commented Jul 29, 2016 at 12:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.