fix(rate-limit): configure trusted proxies and relax newsletter throttle limit
Deploy Backend / deploy (push) Successful in 48s
Deploy Backend / deploy (push) Successful in 48s
This commit is contained in:
1 parent
5fb68a4464
commit
eda889e166
2 files changed
+2
-1
No files matched your search
@@ -27,6 +27,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
// Let the Next.js admin panel authenticate with a Sanctum session
|
||||
// cookie issued on the same registrable domain, instead of shipping a
|
||||
// bearer token to JavaScript.
|
||||
$middleware->trustProxies(at: '*');
|
||||
$middleware->statefulApi();
|
||||
|
||||
$middleware->api(prepend: [
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ Route::post('contact', [ContactMessageController::class, 'store'])
|
||||
*/
|
||||
|
||||
Route::post('newsletter/subscribe', [NewsletterSubscriptionController::class, 'subscribe'])
|
||||
->middleware('throttle:5,1');
|
||||
->middleware('throttle:15,1');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user