6 #ifndef CSRFPROTECTION_H
7 #define CSRFPROTECTION_H
9 #include <Cutelyst/cutelyst_global.h>
10 #include <Cutelyst/Plugin>
15 class CSRFProtectionPrivate;
251 void setDefaultDetachTo(
const QString &actionNameOrPath);
257 void setFormFieldName(
const QString &fieldName);
262 void setErrorMsgStashKey(
const QString &keyName);
269 void setIgnoredNamespaces(
const QStringList &namespaces);
278 void setUseSessions(
bool useSessions);
294 void setCookieHttpOnly(
bool httpOnly);
300 void setCookieName(
const QString &cookieName);
306 void setHeaderName(
const QString &headerName);
314 void setGenericErrorMessage(
const QString &message);
321 void setGenericErrorContentTyp(
const QString &type);
345 static bool checkPassed(
Context *c);
348 CSRFProtectionPrivate *d_ptr;
The Cutelyst Application.
Protect input forms against Cross Site Request Forgery (CSRF/XSRF) attacks.
The Cutelyst namespace holds all public Cutelyst API.