Fix PayPal billing flow and mobile admin UX
This commit is contained in:
@@ -81,6 +81,18 @@ class ContentSecurityPolicy
|
||||
'https:',
|
||||
];
|
||||
|
||||
$paypalSources = [
|
||||
'https://www.paypal.com',
|
||||
'https://www.paypalobjects.com',
|
||||
'https://*.paypal.com',
|
||||
'https://*.paypalobjects.com',
|
||||
];
|
||||
|
||||
$scriptSources = array_merge($scriptSources, $paypalSources);
|
||||
$connectSources = array_merge($connectSources, $paypalSources);
|
||||
$frameSources = array_merge($frameSources, $paypalSources);
|
||||
$imgSources = array_merge($imgSources, $paypalSources);
|
||||
|
||||
if ($matomoOrigin) {
|
||||
$scriptSources[] = $matomoOrigin;
|
||||
$connectSources[] = $matomoOrigin;
|
||||
@@ -90,6 +102,18 @@ class ContentSecurityPolicy
|
||||
$isDev = app()->environment(['local', 'development']) || config('app.debug');
|
||||
|
||||
if ($isDev) {
|
||||
$paypalSandboxSources = [
|
||||
'https://www.sandbox.paypal.com',
|
||||
'https://www.sandbox.paypalobjects.com',
|
||||
'https://*.sandbox.paypal.com',
|
||||
'https://*.sandbox.paypalobjects.com',
|
||||
];
|
||||
|
||||
$scriptSources = array_merge($scriptSources, $paypalSandboxSources);
|
||||
$connectSources = array_merge($connectSources, $paypalSandboxSources);
|
||||
$frameSources = array_merge($frameSources, $paypalSandboxSources);
|
||||
$imgSources = array_merge($imgSources, $paypalSandboxSources);
|
||||
|
||||
$devHosts = [
|
||||
'http://fotospiel-app.test:5173',
|
||||
'http://127.0.0.1:5173',
|
||||
|
||||
Reference in New Issue
Block a user