CSRF protection With CDBHtppSession

Hi,
I have followed this article here It works well until I uncomment the cdbhettpsession settings
like

'session' => array(
		'class' => 'CDbHttpSession',
		'cookieParams' => array(
			'domain' => $_SERVER['HTTP_HOST'],
			//'path' => '/; samesite=Strict',
			'secure' => true,
			'httponly' => true
			
		),
		'connectionID' => 'db',
		'autoCreateSessionTable' => false,
	),

The error I get is

Error
Error Code:400

The CSRF token could not be verified.