From 26e92b8a6408e263d94e6d76a8ecb855cec98149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 14 Sep 2021 15:35:10 +0800 Subject: [PATCH] Update app.php --- config/app.php | 5 +++++ 1 file changed, 5 insertions(+) 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