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!

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    smcclure created

    Ok thank you!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)