funktionierender stand, purchasewizard noch nicht optimiert.
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user