'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'test', //這裏配置祕鑰字符串就不會報錯了 ]]