Ich entwickelte eine html5-Seite, um Google Drive-Dateien aufzulisten und mit PhoneGap Server zu testen. Alles funktioniert gut, weil ich ein Oauth2 mit http://localhost:3000 konfiguriert habe.Android App + Cordova + HTML5 + Google Drive API
Als ich versuchte, eine APK-Datei zu testen, mit SHA1 (auch auf OAuth2 konfiguriert in Google Drive Konsole), habe ich den Fehler erhalten:
Refused to display 'https://accounts.google.com/o/oauth2/auth?client_id=<KEY>' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. I understand that this error is because the Oauth2 doesn't expect the origin. But the Origin is not http, if file know... (file:///android_asset/www/index.html). The GoogleAPI Console doesn't accept 'file' protocol... just 'http'.
Wie kann ich dieses Problem lösen?
können Sie meine Antwort auf eine ähnliche SO überprüfen [Frage] (http://stackoverflow.com/questions/35746756/how-implement-google-drive-in-ionic-app/42412306#42412306) – JcDenton86