From efc1f4ae1e9a9f1e58b93ce15689a560ac9cfe3e Mon Sep 17 00:00:00 2001 From: unset <193344396@qq.com> Date: Tue, 31 Jul 2018 17:07:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug:=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E8=B0=83=E7=94=A8api=E6=A8=A1=E5=9D=97=E7=9A=84api=E6=97=B6?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=B7=A8=E5=9F=9F=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/behavior/BuildResponse.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/api/behavior/BuildResponse.php b/application/api/behavior/BuildResponse.php index 94b8345..2e2cc1f 100644 --- a/application/api/behavior/BuildResponse.php +++ b/application/api/behavior/BuildResponse.php @@ -23,6 +23,8 @@ class BuildResponse { * @throws \think\exception\DbException */ public function run($response) { + $header = config('apiAdmin.CROSS_DOMAIN'); + $response->header($header); $data = $response->getData(); $request = Request::instance(); $hash = $request->routeInfo();