prevent request forgery

This commit is contained in:
2026-05-10 14:25:12 +03:30
parent c2328ec666
commit ca094cff9f
2 changed files with 1 additions and 2 deletions

View File

@@ -30,7 +30,6 @@ ENV COMPOSER_ALLOW_SUPERUSER=1
# Default command
CMD composer install ;\
composer dump-autoload --optimize --classmap-authoritative ;\
php artisan key:generate ;\
php artisan migrate ;\
php artisan db:seed ;\
php-fpm

View File

@@ -12,7 +12,7 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
$middleware->web()->validateCsrfTokens(['*']);
$middleware->web()->preventRequestForgery(['*']);
})
->withExceptions(function (Exceptions $exceptions): void {
//