Some checks failed
Admin | Playwright Tests / Admin | Playwright Tests | Shard 1 Of 6 (push) Failing after 37s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 2 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 4 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 6 Of 6 (push) Failing after 6s
Linting Tests / PHP 8.3 test on ubuntu-latest (push) Failing after 5s
CI / PHP 8.3 test on ubuntu-latest (push) Failing after 6s
Skills Consistency / validate-skills (push) Successful in 10s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 3 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 5 Of 6 (push) Failing after 6s
63 lines
1.6 KiB
PHP
63 lines
1.6 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Laravel CORS Options
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The allowed_methods and allowed_headers options are case-insensitive.
|
|
|
|
|
| You don't need to provide both allowed_origins and allowed_origins_patterns.
|
|
| If one of the strings passed matches, it is considered a valid origin.
|
|
|
|
|
| If ['*'] is provided to allowed_methods, allowed_origins or allowed_headers
|
|
| all methods / origins / headers are allowed.
|
|
|
|
|
*/
|
|
|
|
/*
|
|
* You can enable CORS for 1 or multiple paths.
|
|
* Example: ['api/*']
|
|
*/
|
|
'paths' => [
|
|
'admin/web-forms/forms/*',
|
|
],
|
|
|
|
/*
|
|
* Matches the request method. `['*']` allows all methods.
|
|
*/
|
|
'allowed_methods' => ['*'],
|
|
|
|
/*
|
|
* Matches the request origin. `['*']` allows all origins. Wildcards can be used, eg `*.mydomain.com`
|
|
*/
|
|
'allowed_origins' => ['*'],
|
|
|
|
/*
|
|
* Patterns that can be used with `preg_match` to match the origin.
|
|
*/
|
|
'allowed_origins_patterns' => [],
|
|
|
|
/*
|
|
* Sets the Access-Control-Allow-Headers response header. `['*']` allows all headers.
|
|
*/
|
|
'allowed_headers' => ['*'],
|
|
|
|
/*
|
|
* Sets the Access-Control-Expose-Headers response header with these headers.
|
|
*/
|
|
'exposed_headers' => [],
|
|
|
|
/*
|
|
* Sets the Access-Control-Max-Age response header when > 0.
|
|
*/
|
|
'max_age' => 0,
|
|
|
|
/*
|
|
* Sets the Access-Control-Allow-Credentials header.
|
|
*/
|
|
'supports_credentials' => false,
|
|
];
|