Have a look at this page. It shows how to get Angular to successfully call GET Web Services.
http://better-inter.net/enabling-cors-in-angular-js/ (It was a life-saver for me..!) Mike http://www.mikesknowledgebase.com On Tuesday, May 15, 2012 12:42:36 AM UTC+2, Eduardo Burnay wrote: > > Hello > > Why does my resquest method in the header is OPTIONS instead of GET as > expected? > I try in both Chrome and firefox browsers. > Can anyone help me? > > Thanks > > Headers of my request > > Request URL:[my url] > Request Method:OPTIONS > Status Code:200 OK > ... > > my code > > $http({method: 'GET', url: 'my url'}). > success(function(data, status, headers, config) { > console.log(status); console.log("success"); > }). > error(function(data, status, headers, config) { > console.log(config); console.log("fail"); > }); -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
