question

SharathC-1054 avatar image
0 Votes"
SharathC-1054 asked SharathC-1054 edited

How to insecure cookies in asp.net core

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

dotnet-aspnet-core-generaldotnet-aspnet-core-mvcdotnet-aspnet-core-webapidotnet-aspnet-core-securitydotnet-aspnet-core-auth
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Web API typically does not use cookies. If you are using cookies then always use HTTPS as the message recommends.

0 Votes 0 ·

0 Answers