Commit 87a209a7 87a209a7d514a156fd066c9157a69b8139d6d4d3 by lemon

*

1 parent cdd22707
1 <?php
2
3 return [
4
5 /*
6 |--------------------------------------------------------------------------
7 | Laravel CORS Options
8 |--------------------------------------------------------------------------
9 |
10 | The allowed_methods and allowed_headers options are case-insensitive.
11 |
12 | You don't need to provide both allowed_origins and allowed_origins_patterns.
13 | If one of the strings passed matches, it is considered a valid origin.
14 |
15 | If ['*'] is provided to allowed_methods, allowed_origins or allowed_headers
16 | all methods / origins / headers are allowed.
17 |
18 */
19
20 /*
21 * You can enable CORS for 1 or multiple paths.
22 * Example: ['api/*']
23 */
24 'paths' => ['api/*', 'release/*'],
25
26 /*
27 * Matches the request method. `['*']` allows all methods.
28 */
29 'allowed_methods' => ['*'],
30
31 /*
32 * Matches the request origin. `['*']` allows all origins. Wildcards can be used, eg `*.mydomain.com`
33 */
34 'allowed_origins' => ['*'],
35
36 /*
37 * Patterns that can be used with `preg_match` to match the origin.
38 */
39 'allowed_origins_patterns' => [],
40
41 /*
42 * Sets the Access-Control-Allow-Headers response header. `['*']` allows all headers.
43 */
44 'allowed_headers' => ['*'],
45
46 /*
47 * Sets the Access-Control-Expose-Headers response header with these headers.
48 */
49 'exposed_headers' => [],
50
51 /*
52 * Sets the Access-Control-Max-Age response header when > 0.
53 */
54 'max_age' => 0,
55
56 /*
57 * Sets the Access-Control-Allow-Credentials header.
58 */
59 'supports_credentials' => false,
60 ];