Add support for csrf tokens