forked from slimkit/plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp.php
More file actions
36 lines (34 loc) · 1.45 KB
/
Copy pathhttp.php
File metadata and controls
36 lines (34 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/*
* +----------------------------------------------------------------------+
* | ThinkSNS Plus |
* +----------------------------------------------------------------------+
* | Copyright (c) 2016-Present ZhiYiChuangXiang Technology Co., Ltd. |
* +----------------------------------------------------------------------+
* | This source file is subject to enterprise private license, that is |
* | bundled with this package in the file LICENSE, and is available |
* | through the world-wide-web at the following url: |
* | https://github.com/slimkit/plus/blob/master/LICENSE |
* +----------------------------------------------------------------------+
* | Author: Slim Kit Group <[email protected]> |
* | Homepage: www.thinksns.com |
* +----------------------------------------------------------------------+
*/
return [
'cors' => [
'credentials' => false,
'origin' => ['*'],
'methods' => ['*'], // => ['GET', 'POST', 'PATCH', 'PUT', 'OPTION', 'PUT', 'DELETE']
'allow-headers' => ['*'], // => ['Origin', 'Content-Type', 'Accept', 'X-Requested-With']
'expose-headers' => [],
'max-age' => 0,
],
'spa' => [
'open' => false,
'uri' => null,
],
'web' => [
'open' => false,
'uri' => null,
],
];