Solution to: "Origin is not allowed by Access-Control-Allow-Origin." with AngularJS and ngResource ($resource)
I just spent way to much time trying to figure out why I kept getting this error: Origin is not allowed by Access-Control-Allow-Origin. Here’s the code snippet: var resource = $resource('http://local