Google Chrome Browser Block ".AspNetCore.Identity.Application" Cookie In Deployment Only

after deploy asp.net core mvc 6 to iis server the user in case submit a true login not redirected to the controller and not authenticated, when I tracked the cookie in developer tools there is a ! mark on ".AspNetCore.Identity.Application" and when hover on it there is a message show (This cookie was blocked because it had the "Secure" attribute and the connection was not secure).

What I tried Before

  • Changing the cookie configuration
  • Exchange return LocalRedirect(returnUrl) To return RedirectionToAction("Index","Home")
  • Add [AllowAnonymous] attribute on LoginModel in (Areas.Identity.Pages.Account)
  • Remove Use.HttpsRedirection(); from program.cs


Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)