Monday 15 March 2010

Cross domain issues while accessing ASP.NET Web API Restful services: -



Cross domain issues while accessing ASP.NET Web API Restful services: -

situation per below:

services hosted @ suppose example_services.com. these services asp.net web api restful services. windows authentication(ntlm) enabled on this.

client hosted @ suppose example_client.com. in mvc asp.net. windows authentication(ntlm) enabled on this. asp.net impersonation enabled on this.

now client wants access services offered example_services.com windows authentication. hence here both hosted on different domains(cross domain).

windows authentication working on client side, getting 401(access denied error) while accessing services example_services.com in example_client.com.

so have next questions:

how pass credentials of "logged on users" service. is possible bypass "windows authentication windows pop" every time client tries access services.

first of need enable cross-origin requests in web api. follow instruction next link enabling cross-origin requests

then have pass credentials while making request web api client. see info passing credentials next link passing credentials in cross-origin requests

hope helps.

regards arkadas

asp.net-mvc asp.net-web-api cross-domain windows-authentication impersonation

No comments:

Post a Comment