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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -