I want to make my Antiforgery cookies secured, so I add some changes to my code:
services.AddMvc(); services.AddAntiforgery(opts => { opts