I am trying to authorize a cloud provider following this on localhost, in ConfigureServices method, my Startup.cs file has
services.AddAntiforgery(options => options.HeaderName = "RequestVerificationToken");
Inside a [HttpGet] controller method, I am trying to validate the request with:
await _antiforgery.ValidateRequestAsync(HttpContext);
This is throwing the exception. Can anyone please suggest what I am doing wrong here?
Thanks!