You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
707 B
20 lines
707 B
<?php
|
|
// 全局中间件定义文件
|
|
return [
|
|
// 全局请求缓存
|
|
// \think\middleware\CheckRequestCache::class,
|
|
// 多语言加载
|
|
// \think\middleware\LoadLangPack::class,
|
|
// Session初始化
|
|
// \think\middleware\SessionInit::class
|
|
//自定义跨域中间件
|
|
\app\middleware\AllowCrossDomain::class,
|
|
// 系统跨域,传入token参数
|
|
// \think\middleware\AllowCrossDomain::class,
|
|
// [
|
|
// \think\middleware\AllowCrossDomain::class,
|
|
// [
|
|
// ['Access-Control-Allow-Headers' => 'Token,Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-CSRF-TOKEN, X-Requested-With']
|
|
// ]
|
|
// ],
|
|
];
|
|
|