I am using Laravel 5 for developing an app. My app is connected with VendHQ API and I am intended to get some data from VendHQ through their webhook. As per their Documentation
当事件发生并触发webhook时,我们将发送一条帖子
The problem is, when they try to send a POST request to my Laravel app, no CSRF Token is added in their post request and VerifyCsrfToken
middleware is looking for a token and finally it throws a TokenMismatchException
.
我的问题是,如何在保持其他POST请求处于活动状态的同时避免某些特定路由的默认VerifyCsrfToken
中间件?