How to set Asp.net core Cookies as Secure
Below is Code in Start.up
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) .AddCookie(options => { options.LoginPath = "/"; options.LogoutPath = "/LogIn/Index"; });
Hi Dharmendr,
Below URL look like this cookies secure is sucessfully completed.
https://mariusschulz.com/blog/securing-authentication-cookies-in-asp-net-core
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.