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 ID123456789.apps.googleusercontent.com
Email address123456789@developer.gserviceaccount.com
Client secretXxxxxXXXxxxxxx
Redirect URIsnone
Javascript Origins
  • http://127.0.0.1:3030
For example for dart applications:

  • http://127.0.0.1:3030

Popular posts from this blog

Soving AccessDenied on Google Cloud Storage domain mapping

Fixing "DerInputStream.getLength(): lengthTag=109, too big" in Android Studio

Simple Samba setup on Lubuntu