Posts

Showing posts from February, 2014

Allow using Google API in Web applications from localhost

While most scenarios in Google Drive API doc and samples  tells to run the sample app on a server, it is actually possible to run from localhost as long as the javascript origin is properly added: Make sure you have created a new client id for web applications such as: Client ID for web application Client ID 123456789.apps.googleusercontent.com Email address 123456789@developer.gserviceaccount.com Client secret XxxxxXXXxxxxxx Redirect URIs none Javascript Origins http://127.0.0.1:3030 For example for dart applications: http://127.0.0.1:3030