W
W
wrewolf2016-08-28 16:56:56
Yii
wrewolf, 2016-08-28 16:56:56

Yii2 advanced template. When submitting the form Unable to verify your data submission. In this case, _сsrf is transmitted. How to fix?

Installed an empty advanced application. Performed initialization. Set up the base. Performed the migration.
Can't register. Unable to verify your data submission error. Inet says cant with the transfer of srf.
But in LAN on the test server everything works. Hosting stops working. Moreover, even a POST request does not come there, although the data in the request body is visible. Changing the form encoding type does not help.

Request Body
Content Type	'application/x-www-form-urlencoded'
Raw	'_csrf=XzZfZS53cjhvRThQYRAfT2ZiGlNFLjNJHlsyNU9FIlkvT2tTSCM2Vg%3D%3D&SignupForm%5Busername%5D=asdasd&SignupForm%5Bemail%5D=asdasdasd%40sdfsdf.sdf&SignupForm%5Bpassword%5D=sfsdfsdf&signup-button='
Decoded to Params	[]

It can be seen that he cannot parse the request, for the same reason he does not see csrf either. And turning it off is expected to give nothing, because. the request for the engine came empty.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question