How to insecure cookies in asp.net core

Sharath C 1 Reputation point
2022-07-20T09:03:02.563+00:00

How to insecure cookies in asp.net core?
Authentication.Api/Startup.cs application configuration file
does not define sensitive application cookies with the "secure" flag, which could cause the client to send those cookies in
plaintext over an insecure network communication (HTTP). This may lead to a Session Hijacking attack.

Method
public class Startup

Please help to my code . If get let me know

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,189 questions
{count} votes