I test app on local is ok. I deploy to server with https
domain. When i submit form then show 400 Error: Bad Request (#400): Unable to verify your data submission.
And have problem with Https
, how can i fix it
Maybe you have got non-secure cookies blocked when sending over https. Try this in configuration:
return [
// ...
'components' => [
// ...
'request' => [
'class' => 'yii\web\Request',
'csrfCookie' => [
'httpOnly' => true,
'secure' => true,
],
],
],
];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With