Google API: Not a valid origin for the client: url has not been whitelisted for client ID "ID"
I cleared cache. Started working then.
In Chrome: Settings --> Advanced --> Clear browsing data --> Cached images and files
Had the same problem and here's how I solved it:
- Activate both Analytics and Google Plus APIs on your project
- Create new OAUTH 2.0 client credentials
- Add the Authorized Javascript Origins under Restrictions section
- Use the new client id.
Enjoy.
Clearing the cache did the trick for me