Reputation: 344
I am trying to call windows authenticated WCF service from javascript, but I am getting xmlhttp response status 401, which is unauthorized access. I have already written code for allowing cross domain access. It works with Forms authentication but the problem occurs when we make it windows authenticated. Please help !
Upvotes: 2
Views: 291
Reputation: 7681
I think it may be related to not passing your NTLM authentication on to the site.
Try this:
network.automatic-ntlm-auth.trusted-uris
Enter the URL(s) of any sites that you'd like to pass NTLM authentication tokens to. Like:
http://myinternal.site.com,https://intranet.companysite.com
Repeat steps 2-4 for the about.config key: network.negotiate-auth.trusted-uris
Upvotes: 1