Add hooks for protecting headers and redirects.