I have a WCF client hosted in IIS7 and a WCF service hosted in IIS7. The client is strictly http/javascript and I'd like to keep it that way.
When I browse to the client webpage, I'm prompted for Windows Authentication credentials because the page is protected (and served with https). Once I've authenticated, my AJAX calls to the service (from the client) are not processed because I'm never given an opportunity to authenticate to the service itself.
What is the best way to implement security if I want to protect access to the service using Active Directory credentials but without using .NET libraries?
The specific response returned by the service is "401 (Unauthorized)". Note that the service is also served with https.