-
Notifications
You must be signed in to change notification settings - Fork 470
/
Copy pathhttp.php
36 lines (34 loc) · 1.45 KB
/
http.php
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) 2018 Chengdu ZhiYiChuangXiang Technology Co., Ltd. |
* +----------------------------------------------------------------------+
* | This source file is subject to version 2.0 of the Apache license, |
* | that is bundled with this package in the file LICENSE, and is |
* | available through the world-wide-web at the following url: |
* | http://www.apache.org/licenses/LICENSE-2.0.html |
* +----------------------------------------------------------------------+
* | 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,
],
];