Base solution for your next web application
Open Closed

WebApi - disable antiforgery tokens #2933


User avatar
0
smcclure created

Hi,

Is there a way to disable antiforgery tokens for an individual service that is created by the dynamic WebApi feature? I was looking for something similar to the DisableAbpAntiForgeryTokenValidation attribute, but didn't see anything.

Thanks!


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You are right, this is not possible at the moment. You can create a custom WebApi Controller and call your app service from it.

    Thanks.

  • User Avatar
    0
    smcclure created

    Ok thank you!