I know that Cross-Site Request Forgery (CSRF)
is an attack that forces an user to execute unintentional actions some web application in which they are already logged in.
I want to prevent CSRF on calls being made to my Koa.js based APIs and form submissions. This is a JWT based application.
Usually frameworks have plugins that prevent or secure against CSRF. However, how can you prevent such CSRF attacks when you are using Koa.js
? Are there any middlewares
in Koa that does this?