Pergunta de entrevista da empresa Toptal

How did you protect your website against XSS and CSRF?