feat: wire dynamic config resolver and exclude webhook from CSRF
This commit is contained in:
1 parent
92a2eb120f
commit
a5a7b967ba
2 files changed
+17
-1
No files matched your search
@@ -16,6 +16,11 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
'permission' => \Spatie\Permission\Middleware\PermissionMiddleware::class,
|
||||
'role_or_permission' => \Spatie\Permission\Middleware\RoleOrPermissionMiddleware::class,
|
||||
]);
|
||||
|
||||
$middleware->validateCsrfTokens(except: [
|
||||
'ultra-message/webhook',
|
||||
'ultra-message/*',
|
||||
]);
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions): void {
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user