Posting with $http

Posting to server JAX/RS (JERSEY RI) using $ gives out cors issue.

Hi @siddhartha,

Are you trying to use $ 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:



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. :frowning:

hi @nicraboy
I am having a similar issue $ 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 ‘’ 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