How to add an anti forgery token to an 'A' link in Net6 unobtrusive ajax?
I have an a link like:
<a class="btn btn-warning btn-sm"
data-ajax="true"
data-ajax-begin="beginClearWCGWCs"
data-ajax-update="#WCEditor"
data-ajax-url="/Prefs/ClearWCGWGs/@ViewData["ActiveWCGID"]"
data-ajax-method="get"
data-ajax-token="@Html.AntiForgeryToken()"
style="margin-bottom:10px;"
title="Delete ALL">
Delete All
</a>
This links works except for the AntiForgeryToken.
How do I add an antiforgery token to this 'A' link?