Posting to server JAX/RS (JERSEY RI) using $http.post() gives out cors issue.
Hi @siddhartha,
Are you trying to use $http.post from a web browser or from within your application? Typically cross origin resource sharing (CORS) will give you all kinds of problems from a web browser, but it should work fine from within your application.
Check out the following posts on the topic:
http://ionicframework.com/blog/angularjs-authentication/
Regards,
Hey!
Thanks for the reply. Yes I am trying to post from my web browser. I am not able to post even from my mobile application.
hi @nicraboy
I am having a similar issue $http.post method…When i try to use it i get the following error in my browser
’No Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://169.254.61.33:8100’ is therefore not allowed access. The response had HTTP status code 403.`
However when i test the http.get metod
it works with out a problem… this is an example of my app.js code that i am using. link