funktionierender stand, purchasewizard noch nicht optimiert.

This commit is contained in:
Codex Agent
2025-10-04 16:49:21 +02:00
parent bc6a75961a
commit 3c0bbb688b
15 changed files with 400 additions and 1867 deletions

View File

@@ -132,13 +132,17 @@ class MarketingController extends Controller
$stripePublishableKey = config('services.stripe.key');
$privacyHtml = view('legal.datenschutz-partial', ['locale' => app()->getLocale()])->render();
return Inertia::render('marketing/PurchaseWizard', [
$csp = "default-src 'self'; script-src 'self' 'unsafe-inline' http://localhost:5173 https://js.stripe.com https://js.stripe.network; style-src 'self' 'unsafe-inline' data: https:; img-src 'self' data: https: blob:; font-src 'self' data: https:; connect-src 'self' http://localhost:5173 ws://localhost:5173 https://api.stripe.com https://api.stripe.network wss://*.stripe.network; media-src data: blob: 'self' https: https://js.stripe.com https://*.stripe.com; frame-src 'self' https://js.stripe.com https://*.stripe.com; object-src 'none'; base-uri 'self'; form-action 'self';";
$response = Inertia::render('marketing/PurchaseWizard', [
'package' => $package,
'stripePublishableKey' => $stripePublishableKey,
'paypalClientId' => config('services.paypal.client_id'),
'privacyHtml' => $privacyHtml,
]);
])->toResponse($request);
$response->headers->set('Content-Security-Policy', $csp);
return $response;
}
/**
* Checkout for Stripe with auth metadata.
*/