fix(rate-limit): configure trusted proxies and relax newsletter throttle limit
Deploy Backend / deploy (push) Successful in 48s

This commit is contained in:
Parsa Aghayi committed 2026-11-02 17:25:41 +00:00
1 parent 5fb68a4464
commit eda889e166
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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
View File
@@ -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');
/*
|--------------------------------------------------------------------------