angularjs - How to enable cors request with angular.js-resource -
i have angular.js application , need cors request. i want define rest services "the angular" using angular resources, described here: http://docs.angularjs.org/tutorial/step_11 . but haven't found way working. on google found following sample code: http://jsfiddle.net/ricardohbin/e3yet/ , seems not work angular-resources. this app.js 'use strict'; angular.module('corsclientangularapp', ['helloservices']) .config(function ($routeprovider) { $routeprovider .when('/', { templateurl: 'views/main.html', controller: 'mainctrl' }) .otherwise({ redirectto: '/' }); }); this services.js rest services angular.module('helloservices', ['ngresource']). factory('hello', function($resource){ return $resource('http://localhost:8080/cors-server/hello/:name', {}, { query: {method:'get', params:{name:'name'...