Reputation: 2362
I am writing an ASP.NET Core 6 MVC app, and I am using X.PagedList
to do paging.
In my table I set this for Paging
@Html.PagedListPager((IPagedList)Model.SearchResultViewPaging, page =>
Url.Action("ResultPaging", "Participant", new { page = page }))
The method in the controller is decorated with a [ValidateAntiForgeryToken]
annotation. I have this as a warning of Veracode.
In Javascript, this is the call I use to send
headers: {
"RequestVerificationToken":
$('input:hidden[name="__RequestVerificationToken"]').val()
},
How can I send this as a header?
Thanks
Upvotes: 0
Views: 117