Base solution for your next web application
Open Closed

ValidateAntiForgeryToken for AppService #1551


User avatar
0
mhdbaz created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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>.

  • User Avatar
    0
    finallyfreeguy created

    Link is broken

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.