prevent request forgery
This commit is contained in:
@@ -30,7 +30,6 @@ ENV COMPOSER_ALLOW_SUPERUSER=1
|
|||||||
# Default command
|
# Default command
|
||||||
CMD composer install ;\
|
CMD composer install ;\
|
||||||
composer dump-autoload --optimize --classmap-authoritative ;\
|
composer dump-autoload --optimize --classmap-authoritative ;\
|
||||||
php artisan key:generate ;\
|
|
||||||
php artisan migrate ;\
|
php artisan migrate ;\
|
||||||
php artisan db:seed ;\
|
php artisan db:seed ;\
|
||||||
php-fpm
|
php-fpm
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
|||||||
health: '/up',
|
health: '/up',
|
||||||
)
|
)
|
||||||
->withMiddleware(function (Middleware $middleware): void {
|
->withMiddleware(function (Middleware $middleware): void {
|
||||||
$middleware->web()->validateCsrfTokens(['*']);
|
$middleware->web()->preventRequestForgery(['*']);
|
||||||
})
|
})
|
||||||
->withExceptions(function (Exceptions $exceptions): void {
|
->withExceptions(function (Exceptions $exceptions): void {
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user