Use by adding this to config.php:
addPlugin('StrictTransportSecurity', array('preloadToken'=>true));
{
public $max_age = 15552000;
public $includeSubDomains = false;
+ public $preloadToken = false;
function __construct()
{
$path = common_config('site', 'path');
if(common_config('site', 'ssl') == 'always' && ($path == '/' || ! $path )) {
header('Strict-Transport-Security: max-age=' . $this->max_age
- . ($this->includeSubDomains ? '; includeSubDomains' : ''));
+ . ($this->includeSubDomains ? '; includeSubDomains' : '')
+ . ($this->preloadToken ? '; preload' : ''));
}
}