mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-03-25 14:53:52 +00:00
48 lines
2.2 KiB
PHP
48 lines
2.2 KiB
PHP
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
// +----------------------------------------------------------------------
|
||
// | Author: CRMEB Team <admin@crmeb.com>
|
||
// +----------------------------------------------------------------------
|
||
// +----------------------------------------------------------------------
|
||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||
// +----------------------------------------------------------------------
|
||
// | Author: liu21st <liu21st@gmail.com>
|
||
// +----------------------------------------------------------------------
|
||
|
||
// +----------------------------------------------------------------------
|
||
// | Cookie设置
|
||
// +----------------------------------------------------------------------
|
||
return [
|
||
// cookie 保存时间
|
||
'expire' => 0,
|
||
// cookie 保存路径
|
||
'path' => '/',
|
||
// cookie 有效域名
|
||
'domain' => '',
|
||
// cookie 启用安全传输
|
||
'secure' => false,
|
||
// httponly设置
|
||
'httponly' => false,
|
||
// 是否使用 setcookie
|
||
'setcookie' => true,
|
||
// 跨域header
|
||
'header' => [
|
||
'Access-Control-Allow-Origin' => '*',
|
||
'Access-Control-Allow-Headers' => 'Authori-zation,Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With, Form-type, Cb-lang, Invalid-zation',
|
||
'Access-Control-Allow-Methods' => 'GET,POST,PATCH,PUT,DELETE,OPTIONS,DELETE',
|
||
'Access-Control-Max-Age' => '1728000',
|
||
'Access-Control-Allow-Credentials' => 'true'
|
||
],
|
||
// token名称
|
||
'token_name' => 'Authori-zation',
|
||
];
|