온라인 양식으로 작동하지만 Internet Explorer, Firefox 및 Chrome의 개발 환경에서는 작동하지 않는 것으로 보이는 ASP.NET 양식 인증을 사용합니다. 지금까지 내가 페이지가 요청 될 때 IIS가 Set-Cookie
HTTP 헤더를 전송하지 볼 수 있습니다 : 나는 \Windows\System32\drivers\etc\hosts
파일에 127.0.0.1 www.example.com
을 추가하는 대신 http://www.example.com:81에 접근하지만, 그 효과가 없습니다 해봤HTTP 헤더의 IIS가 쿠키를 설정하지 않습니다.
GET http://127.0.0.1:81/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: nb-NO
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate
Host: 127.0.0.1:81
DNT: 1
Connection: Keep-Alive
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/8.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 08 Oct 2014 19:24:58 GMT
Content-Length: 13322
. 여기 내 Web.config의 설정입니다 : 내가 찾은
<!-- ASP.NET forms authentication is enabled by default -->
<authentication mode="Forms">
<!-- Set the page to redirect to when the user attempts to access a restricted resource -->
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>