So I'm building a Phonegap
app and I need to access Youtube's Data API. I managed to access the simple API (The one that requires an API key) yet I'm having trouble connecting with OAuth
.
I did everything the walkthrough guides told me to do, I have generated a Client ID for Web application from https://console.developers.google.com.
I'm using the auth.js
file from their example at the google developers website
The main issue is that every time I try to log in, I get this error:
Refused to display 'https://accounts.google.com/o/oauth2/auth?client_id=' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
I tried clearing my cookies but to no avail. I run this on localhost with Visual Studio, maybe this has something to do with that?