diff --git a/config/app.php b/config/app.php index eda80268fd..39687edd04 100644 --- a/config/app.php +++ b/config/app.php @@ -37,4 +37,9 @@ 'error_message' => '页面错误!请稍后再试~', // 调试模式异常页面的模板文件 // 'exception_tmpl' => app()->getBasePath() . 'admin/view/error.tpl', + + // 自动配置跨域 + 'cors_auto' => true, + // 配置跨域域名 + 'cors_host' => [], ]; \ No newline at end of file