how to set ALL cookies httpOnly and secure

Hello,

I wana set all cookies httpOnly and secure;

I try this settings in web.php config:


'components' => [

        'session' => [

            'cookieParams' => [

                'httpOnly' => true,

                'secure' => true

            ]

        ],

        'cookies' => [

            'class' => 'yii\web\Cookie',

            'httpOnly' => true,

            'secure' => true

        ],

        'request' => [

            'csrfCookie' => [

                'httpOnly' => true,

                'secure' => true

            ]

        ],

....

Add screen for results

You currently can’t do it once for all cookies.