3
votes

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

1 Answers

1
votes

try something like

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