6#ifndef CSRFPROTECTION_H
7#define CSRFPROTECTION_H
9#include <Cutelyst/Plugin>
10#include <Cutelyst/cutelyst_global.h>
15class CSRFProtectionPrivate;
268 void setDefaultDetachTo(
const QString &actionNameOrPath);
274 void setFormFieldName(
const QString &fieldName);
280 void setErrorMsgStashKey(
const QString &keyName);
287 void setIgnoredNamespaces(
const QStringList &namespaces);
296 void setUseSessions(
bool useSessions);
314 void setCookieHttpOnly(
bool httpOnly);
321 void setCookieName(
const QString &cookieName);
327 void setHeaderName(
const QString &headerName);
335 void setGenericErrorMessage(
const QString &message);
342 void setGenericErrorContentTyp(
const QString &type);
369 static bool checkPassed(
Context *c);
372 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.