asp.net - angular with c# web api cross domain doesnt work -
i'm trying populate angular result json request on web api without succcess.
without success. want make angular application read web api result. got error http://jobshop-webapi.validando.com.br/api/login?callback=jsonp_callback 404 (not found)
its cross-domain ajax request i've tried found.
http://jobshop-webapi.validando.com.br/api/login?email=login@email.com&password=senha including header. dont know reason.
please, give light.
edit
response header here:
access-control-allow-origin:* cache-control:no-cache content-length:49 content-type:application/json; charset=utf-8 date:thu, 02 may 2013 14:47:45 gmt expires:-1 pragma:no-cache server:microsoft-iis/7.0 x-aspnet-version:4.0.30319 x-powered-by:asp.net
edit
http://jsbin.com/egonid/12/edit
here code :( doesnt works yet
the response needs add header:
http://patelshailesh.com/index.php/cross-domain-asp-net-web-api-call-using-ajax
this 1 works! :)
Comments
Post a Comment