i am following your udemy coarse that said to watch this, my question is, if we use builder.Services.AddControllersWithViews(options => { options.Filters.Add(new AutoValidateAntiforgeryTokenAttribute()); }); we no longer have to worry about putting it on any controller classes or controller methods?
Thanks!!! Couldn't understand my teacher while you explained it well!
Excellent !! .In depth explanation of Antiforgery token options and why need to use
that is some good content! thank you for explaining!
Instead of MVC application, how this work in Webapi application which request comes from Angular FE?
I have the exact same question. Did you ever find anything helpful on this subject?
Not yet @@BGivo
Very good video...thank you!
i am following your udemy coarse that said to watch this, my question is, if we use
builder.Services.AddControllersWithViews(options =>
{
options.Filters.Add(new AutoValidateAntiforgeryTokenAttribute());
});
we no longer have to worry about putting it on any controller classes or controller methods?
The token generated in admin page form field and cookie is different, how to resolve this?
so on submitting the admin form, getting error.
So in every HttpPost,I should include attribute [validateanti..] ??????
yes!