Class humhub\modules\web\security\helpers\Security

Inheritancehumhub\modules\web\security\helpers\Security

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
SESSION_KEY_NONCE 'security-script-src-nonce' humhub\modules\web\security\helpers\Security

Method Details

applyHeader() public static method

public static void applyHeader ( $withCsp false )
$withCsp
throws Exception
getNonce() public static method

public static string getNonce ( $create false )
$create boolean

Creates a new nonce if none given

throws Exception
setNonce() public static method

public static void setNonce ( $nonce null )
$nonce