How to add ValidateAntiForgeryToken attribute for the generated Application Service API ?
I do not want to add ValidateAntiForgeryToken for all of them.
3 Answer(s)
-
0
Hi,
Please check this issue <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/183">https://github.com/aspnetzero/aspnet-zero/issues/183</a>.
-
0
Link is broken
-
0
Hi,
Sorry, accidentally I shared a private repository link.
You can take a look at this issue <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/268">https://github.com/aspnetboilerplate/as ... issues/268</a>
and this documentation <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/XSRF-CSRF-Protection#aspnet-web-api">http://aspnetboilerplate.com/Pages/Docu ... et-web-api</a>
Basically you need to update lates ABP nuget packages, and it should be done for dynamic web api automatically.