File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,8 @@ $app->configure('wechat');
8181
8282### Laravel <= 5.1
8383
84- > 注意:
85-
86- > 1 . Laravel 5 默认启用了 CSRF 中间件,因为微信的消息是 POST 过来,所以会触发 CSRF 检查导致无法正确响应消息,所以请去除默认的 CSRF 中间件,改成路由中间件。可以参考我的写法:[ overtrue gist: Kernel .php] ( https://gist.github.com/overtrue/ff6cd3a4e869fbaf6c01#file-kernel-php-L31 )
87- > 5.1 里的 CSRF 已经带了可忽略部分url的功能,你可以参考:http://laravel.com/docs/master/routing#csrf-protection
84+ 1 . Laravel 5 起默认启用了 CSRF 中间件,因为微信的消息是 POST 过来,所以会触发 CSRF 检查导致无法正确响应消息,所以请去除默认的 CSRF 中间件,改成路由中间件。可以参考我的写法:[ overtrue gist: Kernel .php] ( https://gist.github.com/overtrue/ff6cd3a4e869fbaf6c01#file-kernel-php-L31 )
85+ 2 . 5.1 里的 CSRF 已经带了可忽略部分url的功能,你可以参考:http://laravel.com/docs/master/routing#csrf-protection
8886
8987### Laravel 5.2
9088
You can’t perform that action at this time.
0 commit comments