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,553 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.