How to pass Windows Authentication credential using $.Ajax to Web API service
Web Api site (B) must attach header
Access-Control-Allow-Origin: https://example.comAccess-Control-Allow-Credentials: true
Line 1:It response if the request from origin server (PHP: $_SERVER['HTTP_ORIGIN']
OR Apache: {HTTP_ORIGIN}
)
Line 2:if the header response true, it will send the credential