I’m getting the following error when trying to create a model with the Gii Model Generator:
Bad Request (#400)
Unable to verify your data submission.
I’ve seen lots of posts online about a CSRF issue with cookies or that one should disable CSRF. I’d rather not do that if possible. My Gii Model form has the following hidden field, which I think is appropriate:
I’ve also updated my composer in my project folder by running ‘composer update’. Now I am on Yii version 2.0.12. My project is using the Yii advanced template. I’m baffled with what else to try. Anyone have any ideas?
Additional info I have discovered. The problem occurs with any form that is submitted. This includes the advanced template login template as well as signup. What’s interesting is that the problem occurs on some development machines but not others with the same code base. At first I thought it was a php version issue and therefore made sure each dev machine was running the same version. Unfortunately, that did not resolve the issue.