Fix proxied checkout CSRF for Merchant, Give, Invoice and Events.
Deploy Ladill Give / deploy (push) Successful in 44s
Deploy Ladill Give / deploy (push) Successful in 44s
Public order/pay POSTs hit ladl.link first; satellite CSRF tokens cannot bind to Link (or platform/satellite) sessions, which returned 419 and showed "Could not start checkout." Except public checkout paths and return access_code from owner-gateway Paystack init. Sync contained Paystack sheet.
This commit is contained in:
@@ -13,6 +13,12 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware): void {
|
||||
// Giving-page donation POSTs are proxied ladl.link → platform → Give without
|
||||
// a browser session cookie that matches Give CSRF tokens.
|
||||
$middleware->validateCsrfTokens(except: [
|
||||
'q/*/order',
|
||||
]);
|
||||
|
||||
$middleware->redirectGuestsTo(fn (Request $request) => route('sso.connect', [
|
||||
'redirect' => $request->fullUrl(),
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user