Cannot get Wechat POST request in Yii 2.0's Wechat Dev
{ 1. Check Server's request log }
Can find request here
101.226.233.152 - - [17/Dec/2016:14:56:56 +0800] "POST xxxx/xx/w-c?signature=xx×tamp=xxxx&nonce=xxx&openid=xxx HTTP/1.1" 400 1292 "-" "Mozilla/4.0"
{ 2. postman test post action }
Hm, got 400 here, so it's a problem of Yii's CSRF checking, let's close it, REF <<IN YII 2.0, CLOSE CSRF CHECK FOR SPECIAL ACTION>>
Bad Request (#400)
Unable to verify your data submission.
The above error occurred while the Web server was processing your request.
Please contact us if you think this is a server error. Thank you.
Leave Comment