learn hapi — Add CSRF Protection on Forms and API Endpoints

During the last weeks, you made tremendous progress on “learn hapi” and your Futureflix app grows in functionality. Up to this point, you rely on hapi’s built-in security mechanisms. We didn’t care about adding custom protection yet (which is totally fine).

That changes now and it’s what you’ll tackle in this tutorial. Implement the protection against cross-site request forgery, in short CSRF. Fun fact: it’s called sea-surf. Let’s make it rock!

hapi Series Overview

  1. Add CSRF Protection on Forms and API Endpoints

Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.