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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -