From 43669a525be58e713ee9e7ea29656bfb27d33863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 16 Sep 2020 20:45:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Http/Response.php | 1 + 1 file changed, 1 insertion(+) diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 5426915a..693dc221 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -178,6 +178,7 @@ class Response extends Application { $this->response->status($status); $this->response->header('Content-Type', $this->getContentType()); + $this->response->header('Access-Control-Allow-Origin', '*'); $this->response->header('Run-Time', $this->getRuntime()); if (empty($sendData)) { $sendData = '';