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 applicationClient ID123456789.apps.googleusercontent.comEmail address123456789@developer.gserviceaccount.comClient secretXxxxxXXXxxxxxxRedirect URIsnoneJavascript Originshttp://127.0.0.1:3030 For example for dart applications:

http://127.0.0.1:3030