store finder cors fix

This commit is contained in:
Jérémy Munsch 2023-05-04 17:10:35 +02:00
parent d109bbfdfd
commit 343049fa20
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
5 changed files with 8 additions and 5 deletions

View file

@ -53,6 +53,7 @@ class SecureHeaders
"prefetch-src 'self' https://cloud.ccm19.de;",
// * CKEDITOR Specific https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/csp.html
"connect-src 'self' blob: " . \implode(' ', [
'https://rules.wo-gilt-was.de',
'https://cloud.ccm19.de',
'https://region1.google-analytics.com',
'https://maps.googleapis.com',

View file

@ -14,7 +14,7 @@ class TrustHosts extends Middleware
public function hosts()
{
return [
$this->allSubdomainsOfApplicationUrl(),
$this->allSubdomainsOfApplicationUrl()
];
}
}

View file

@ -12,6 +12,6 @@ class VerifyCsrfToken extends Middleware
* @var array<int, string>
*/
protected $except = [
'/csp-report'
'/csp-report', '/*'
];
}

View file

@ -15,13 +15,15 @@ return [
|
*/
'paths' => ['api/*', 'sanctum/csrf-cookie'],
'paths' => ['api/*', 'sanctum/csrf-cookie', '*/storefinder'],
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_origins_patterns' => [
'https:\/\/[a-z0-9\-\.]*\.' . \str_replace('.', '\.', 'wo-gilt-was.de')
],
'allowed_headers' => ['*'],

View file

@ -304,4 +304,4 @@
</script>
@endsection
@endsection