I'm trying to call a local webservice/webApi using jquery, but I have been stuck for days. could somebody help me please.

So my webservice is sitting on localhost port 4011 i.e. localhost:4011/api/poi/

And my javascript is sitting on local host port localhost:4213/ and here is how I call it:

```
    $.get('http://localhost:4011/api/values', function (data) {
        alert(data);
    });        

```

When I enter the url into the browser directly, it returned the result. But when I'm calling it using the jquery. I have no response (by looking from the developer tools).

I'm not sure what I'm doing wrong. Please help.

I'm using webApi mvc .net4 if that helps.