This will facilitate adding additional options for CSRF protection. Additionally, a unit test for existing behavior was added.