19 #ifndef CSRFPROTECTION_H
20 #define CSRFPROTECTION_H
22 #include <Cutelyst/cutelyst_global.h>
23 #include <Cutelyst/Plugin>
28 class CSRFProtectionPrivate;
255 void setDefaultDetachTo(
const QString &actionNameOrPath);
261 void setFormFieldName(
const QString &fieldName);
266 void setErrorMsgStashKey(
const QString &keyName);
273 void setIgnoredNamespaces(
const QStringList &namespaces);
282 void setUseSessions(
bool useSessions);
298 void setCookieHttpOnly(
bool httpOnly);
304 void setCookieName(
const QString &cookieName);
310 void setHeaderName(
const QString &headerName);
318 void setGenericErrorMessage(
const QString &message);
325 void setGenericErrorContentTyp(
const QString &type);
349 static bool checkPassed(
Context *c);
352 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.