library/Haste/Security/HttpResponse.php
public static function setSecurityHeaders($strBuffer, $strTemplate)
    {
        if (version_compare(VERSION, "4.4", ">="))
        {
            return $strBuffer;
        }

        if (\Config::get('headerAddXFrame'))
        {
            static::addXFrame();
        }

        if (\Config::get('headerAllowOrigins'))
        {
            static::allowOrigins();
        }

        return $strBuffer;
    }
public static function setSecurityHeaders($strBuffer, $strTemplate)
    {
        if (version_compare(VERSION, "4.4", ">="))
        {
            return $strBuffer;
        }

        if (\Config::get('headerAddXFrame'))
        {
            static::addXFrame();
        }

        if (\Config::get('headerAllowOrigins'))
        {
            static::allowOrigins();
        }

        return $strBuffer;
    }
public static function setSecurityHeaders ( $ strBuffer , $ strTemplate ) { if ( version_compare ( VERSION , "4.4" , ">=" ) ) { return $ strBuffer ; } if ( \ Config :: get ( 'headerAddXFrame' ) ) { static :: addXFrame ( ) ; } if ( \ Config :: get ( 'headerAllowOrigins' ) ) { static :: allowOrigins ( ) ; } return $ strBuffer ; }
Set security headers

NOTE ABOUT CONTAO 4: This won't work with contao 4 anymore. See readme about further informations!

@param $strBuffer
@param $strTemplate
@return mixed
Set security headers