Owin cookie authentication set-cookie not saving in browser

前端 未结 2 1805
时光取名叫无心
时光取名叫无心 2020-12-16 16:35

I am building self-hosted web server on this stack: OWIN Nancy Web Api 2

And I am using Microsoft.Owin.Security.Cookies from Katana for forms-like authentication. I

相关标签:
2条回答
  • 2020-12-16 17:01

    You could be encounting a similar issue to: Safari doesn't set Cookie but IE / FF does

    Try setting the HttpStatusCode to HttpStatusCode.Ok

    Some browsers will only accept cookies from a certain response code (like 200, 302).

    0 讨论(0)
  • 2020-12-16 17:03

    I resolved the issue. It was because 'domain=localhost'. It seems to 'localhost' isn't valid value for domain parameter.

    0 讨论(0)
提交回复
热议问题