Hi, I'm actually building an Forms app which uses aspnet core webapi. For authentication I use following code inside the webapi
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task Login(LoginViewModel model, string returnUrl = null)
{
if (ModelState.IsValid)
{
...
So what do I have to set in my app to get the antiforgerytoken to my next api calls (after the Login worked)?
On Html it would be @Html.AntiForgeryToken().
Any ideas?
KR Martin