3

フレームに 'https://accounts.google.com/o/oauth2/auth?client_id= ******'を表示することを拒否しました'X-Frame-Options'を 'SAMEORIGIN'に設定します。Youtube API用のコンソールエラーOuath verifcation、 'X-Frame-Options'を 'SAMEORIGIN'に設定したため、フレームに表示されません

click here to see the chrome console error

auth.js

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

答えて

1

にgoogleApiClientReady()コードを実行しながら

gapi.auth.authorize({ CLIENT_IDのよう試みる:のclientId、 スコープ:スコープを、 immediate:immediate }、handleAuthResult);

+0

質問:window.setTimeout(checkAuth、1); あなたが言及したものと同じようにchechAuthメソッドで既にそうしています。 – Prakuda

関連する問題