How To Stop a CSRF Attack In PHP (And Setting Secure SameSite Cookies)
A few days ago I noticed a loophole in some code that meant it was vulnerable to an attack known as a CSRF attack. Thankfully, whilst it’s a pretty simple attack, it can be a little tricky to execute. The reason for that is because the attack requires the attacker to actually get the victim …