TP6的跨域中间件 2021年02月26日 liziyu 9 app\middleware.php<?php // 全局中间件定义文件 return [ // 跨域请求 \think\middleware\AllowCrossDomain::class ]; ThinkPHP 暂无标签