dimanche 27 novembre 2016

Why cookies are not set in IE10 if port is specified?

I'm loading a page from IE10 which results in following request

GET http://localhost:9000/api/test/StartUser HTTP/1.1
Accept: text/html, application/xhtml+xml, image/jxr, */*
Accept-Language: en-US,en;q=0.7,ru;q=0.3
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Accept-Encoding: gzip, deflate
Host: localhost:9000
Connection: Keep-Alive
Pragma: no-cache
Cookie: .ASPXAUTH=E37B3981C02B6ACA23C4E1378387650F5B7628627BB3A110B622AA4BA81E871757C16F12F24DA6EDD8512DD76DBFB0C58FADCFDFEA96920EDABE2C0384988F6BC2C19952FA0A1BAE465F31B40361F0F1A07645875031605DB509241296BB182BF76CC742AFEF46D6478F95C0E24ECA5DC95A46AB8980974F62004EB8611F7119C71D0F3DCE905F2AD88C88DBD2ACB44C8D094B656F47825AC4D2363CCB8C622FF25600E64795042E91CBE5EC5381608E

And i've got a response:

HTTP/1.1 200 OK
Content-Length: 13
Content-Type: text/plain; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Set-Cookie: TestUserSID=S-1-5-15-768210012-1870262352-668750042-1446; expires=Mon, 27 Nov 2017 16:54:48 GMT; domain=localhost; path=/
Date: Sun, 27 Nov 2016 16:54:48 GMT

Cookie set :)

Then I open other Tab in a browser got ot the same url and my new request is

GET http://localhost:9000/api/test/StartUser HTTP/1.1
Accept: text/html, application/xhtml+xml, image/jxr, */*
Accept-Language: en-US,en;q=0.7,ru;q=0.3
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Accept-Encoding: gzip, deflate
Host: localhost:9000
Connection: Keep-Alive
Pragma: no-cache
Cookie: .ASPXAUTH=E37B3981C02B6ACA23C4E1378387650F5B7628627BB3A110B622AA4BA81E871757C16F12F24DA6EDD8512DD76DBFB0C58FADCFDFEA96920EDABE2C0384988F6BC2C19952FA0A1BAE465F31B40361F0F1A07645875031605DB509241296BB182BF76CC742AFEF46D6478F95C0E24ECA5DC95A46AB8980974F62004EB8611F7119C71D0F3DCE905F2AD88C88DBD2ACB44C8D094B656F47825AC4D2363CCB8C622FF25600E64795042E91CBE5EC5381608E

Why cookies were not sent with my second request ?




Aucun commentaire:

Enregistrer un commentaire