📜  发布 antiforgerytoken jquery - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:29.829000             🧑  作者: Mango

代码示例1
@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "__AjaxAntiForgeryForm" }))
{
    @Html.AntiForgeryToken()
}

Click me to send an AJAX request to a controller action decorated with the [ValidateAntiForgeryToken] attribute