Try this too, once you have set the Access allow origin in your server, put
this header in your http request
headers:{'Content-type':'application/x-www-form-urlencoded'},
it'll look like this
$http({
url:"http://battle.platform45.com/register",
method:'POST',
data:{name:name, email:email},
headers:{'Content-type':'application/x-www-form-urlencoded'},
})..success(function(data, status, headers, config){
console.log('Success')
});
--
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/d/optout.