Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务器验证问题 #17

Closed
RyanGf opened this issue Nov 14, 2015 · 2 comments
Closed

服务器验证问题 #17

RyanGf opened this issue Nov 14, 2015 · 2 comments

Comments

@RyanGf
Copy link

RyanGf commented Nov 14, 2015

我用laravel 5.1.11的版本,在微信公众平台的服务器配置中,做服务器验证时总提示Token验证失败,验证要怎么操作,大神指教!!!!

@petrus091
Copy link

请检查你的CSRF中间件,微信服务器配置是跨域请求,需要关闭你微信接口路由的CSRF
在App\Http\Middleware\VerifyCsrfToken中的$except中加入你配置的路由名称:
protected $except = [
'wechat'
];

@RyanGf
Copy link
Author

RyanGf commented Nov 17, 2015

搞定,十分感谢!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants