:
Set the SameSite=Strict or SameSite=Lax attribute on session cookies. This prevents the browser from sending cookies along with cross-site requests.
Defending against CSRF requires validating that a request originated from the legitimate user interface, not an external site.
XSS is the "bread and butter" of web vulnerabilities. It occurs when an application includes untrusted data in a web page without proper validation.