Answer the question
In order to leave comments, you need to log in
Do you need CSRF protection in the API?
Hello, I am making an API on nodeJs using the restify plugin, I use JWT for authorization. And I have a question: is it necessary to protect against such an attack in the API?
Answer the question
In order to leave comments, you need to log in
No.
CSRF, as the name Cross Site Request Forgery implies, is only needed to check access from the site (from the browser) and protect against bots.
The API, as the name suggests, the Application Programming Interface, on the contrary, is designed for bots.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question