10 #ifndef __SECURITY_HPP__ 11 #define __SECURITY_HPP__ 60 refNoReferrerWhenDowngrade,
64 refOriginWhenCrossOrigin,
65 refStrictOriginWhenCrossOrigin,
173 #endif // __SECURITY_HPP_ Referer
Referer header options / variants.
Definition: security.hpp:55
std::string hpkpReportUri
If the HPKP header is set, adds the report-uri option, if the string is non-empty (default: empty)
Definition: security.hpp:162
int noDNSPrefetch
If > -1, sets the X-DNS-Prefetch-Control header to on (1) or off (0) (default: 1)
Definition: security.hpp:109
XFrame
X-Frame header options / variants.
Definition: security.hpp:44
int referrer
If <> refUnknown, sets the Referrer-Policy header (default: refUnknown)
Definition: security.hpp:118
bool ieNoOpen
If true, sets the X-Download-Options header to noopen (default: true)
Definition: security.hpp:110
Contains all options for the sessionHandler middleware.
Definition: security.hpp:105
std::vector< std::string > hpkpKeys
Should contain the list of keys to add to the HPKP header . If hpkpMaxAge is not set,...
Definition: security.hpp:159
bool xssProtection
If true, sets the X-XSS-Protection header to 1; mode=block (default: true)
Definition: security.hpp:132
XFrame xFrameAllow
If <> xfUnknown, sets the X-Frame-Options header (default: xfUnknown)
Definition: security.hpp:137
bool hpkpIncludeSubDomains
If the HPKP header is set, adds the includeSubdomains option (default: true)
Definition: security.hpp:161
bool noSniff
If true, sets the X-Content-Type-Options header to nosniff (default: true)
Definition: security.hpp:117
std::function< void(Request *req, Response *res, std::function< void()> next)> MiddlewareFunction
A function which is called by a standard Middleware when an incoming request matches.
Definition: core.hpp:108
int hpkpMaxAge
Sets the max-age option of the Public-Key-Pins header (default: 31536000). If hpkpMaxAge is not set,...
Definition: security.hpp:156
bool stsPreload
If the STS header is set, adds the preload option (default: false)
Definition: security.hpp:152
bool stsIncludeSubDomains
If the STS header is set, adds the includeSubdomains option (default: false)
Definition: security.hpp:151
libcex core classes and functions
std::string xFrameFrom
Sets the ALLOW-FROM name if xFrameAllow option is set to xfFrom
Definition: security.hpp:146
int stsMaxAge
If > 0, sets the Strict-Transport-Security header (default: 31536000)
Definition: security.hpp:150
bool disableCache
If true, sets several cache-related headers (default: true)
Definition: security.hpp:111