.net Core 2.0 web api 400 error using Validateantiforgerytoken
问题 I have two .Net Core applications, a Web API and Client. Sending Post from the client using : <form asp-action="Create" method="post"> @Html.AntiForgeryToken() ..... </form> Client controller: public async Task<IActionResult> Create([Bind("QuestionId,TheQuestion")] SecurityQuestion securityQuestion) { _session.SetString(SessionsKeys.Directory, "/SecurityQuestions"); if (ModelState.IsValid) { var data = await _theService.PostWebApi(securityQuestion); if (data.Item3 == "True") { return