I've been following the Microsoft guide on how to use their Mobile App service to provide google login for a cordova app. I've set up the app service as described and registered my endpoint with the google+ API. I've set my content security policies to unsafe-inline
where necessary in index.html
(this is just for development), i.e.,
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: gap: https://accounts.google.com https://something.azurewebsites.net; style-src 'self' 'unsafe-inline'; media-src *">
However, I'm currently getting the following error that's prevening the google login page from loading:
Refused to display 'https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=xxx.. in a frame because it set 'X-Frame-Options' to 'sameorigin'.
From reading this SO question it would appear that it's not possible to show the google login in an iframe. How then am I suppose to provide google authentication for a cordova app that uses Azure's Mobile App service?