Skip to main content

CSRF Plugin Reference

FieldTypeDefaultOptionalLimitationsDescription
SecretstringNoLength >= 1Secret used to generate CSRF token.
Token Namestringapisix-csrf-tokenYesCSRF token name.
TTLinteger7200YesTTL >= 0Expiration time in seconds of the CSRF token. Set to 0 to skip checking expiration time.
API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2025. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation