在Ubuntu的Node.js应用中应对CSRF攻击,可采取以下措施:
csurf
npm install csurf
csrfProtection
Referer
Origin
SameSite
Strict
Lax
参考资料: