使用ntlm进行Angular2身份验证

时间:2016-11-11 19:42:08

标签: angular ntlm

我正在使用angular-cli来运行angular2项目。

我在后端使用NTLM,但angular2无法进行身份验证,但使用anuglar1也能正常工作。

请求标题

Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate, sdch, br
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Host:myhost.com
Origin:http://localhost:4200
Referer:http://localhost:4200/
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

回复标题

Access-Control-Allow-Credentials:true
Access-Control-Allow-Origin:http://localhost:4200
Cache-Control:no-cache
Content-Length:61
Content-Type:application/json; charset=utf-8
Date:Sat, 12 Nov 2016 18:09:38 GMT
Expires:-1
Pragma:no-cache
Server:Microsoft-IIS/7.5
WWW-Authenticate:NTLM
WWW-Authenticate:Negotiate
X-AspNet-Version:4.0.30319
X-Powered-By:ASP.NET

0 个答案:

没有答案