When you create a Google API credential for a web app, you indicate allowed Javascript Origins which is just a list of URIs. I'm trying to understand what the purpose of these is.
Does this restriction mean any code using my Client ID to access Public Google APIs must originate from those sources? That doesn't seem helpful for two reasons:
1) The first thing I do is add "http://localhost:8080" so I can run code from my development environment but of course every computer self identifies as "localhost" so I've effectively negated any security from it.
2) The Client ID is public knowledge (It's in my JS files which are delivered to client devices) and spoofing the origin would be trivial for a malicious actor.
Is it just meant as a small hurdle for malicious code to get around and nothing more?
Thanks in advance!