CSRF

The CSRF middleware provides protection against cross-site request forgery by passing a CSRF token through cookies.

This cookie will be used to match the client's CSRF token in POST requests. When the CSRF token is invalid, this middleware will delete the csrf_ cookie and return the fiber.ErrForbidden error.

For more information about CSRF middleware, click here

csrf.go