cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ran Davidovitz <>
Subject Cannot call Google API from my cordova app getting accessNotConfigured
Date Sun, 30 Nov 2014 17:41:50 GMT
I created a simple cordova (under ionic) app that utilize the Google Client
JS API, to query youtube activities.list.

When simulating the app on my browser everything works BUT when running on
my device or emulator I get error 403 "Access Not Configured. The API is
not enabled for your project, or there is a per-IP or per-Referer
restriction configured on your API key and the request does not match these
restrictions. Please use the Google Developers Console to update your

in Google API the you-tube API is enabled and I allowed * as referrer so I
expected every request to be approved. When using chrome://inspect, I can
see that header "x-origin" is "file://" and I think this is the problem
since, if I remove this header and recreate the request it approved.

I am using default setting so all origin are allowed from Cordova and the
error is coming from Google.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message