c# - Angular4 client can't send requests to a server with ValidateAntiForgeryToken -
i have angular4 client can send requests correctly asp.net core server.
but implemented [validateantiforgerytoken] in every controller , put in configureservices:
services.addantiforgery(options => options.headername = "x-xsrf-token");
and badrequest(error 400) in every request send server.
Comments
Post a Comment