From 97393716a5fb6bda5441ca2e2c6aaa6233512346 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Wed, 1 Nov 2023 11:42:00 +0800 Subject: [PATCH] =?UTF-8?q?IP=20=E5=88=A4=E6=96=AD=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=B7=A8=E5=9F=9F=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/ip2location/controllers/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/third_party/ip2location/controllers/index.php b/application/third_party/ip2location/controllers/index.php index b1c7f52d..7012b997 100644 --- a/application/third_party/ip2location/controllers/index.php +++ b/application/third_party/ip2location/controllers/index.php @@ -8,6 +8,9 @@ class Index extends CI_Controller public function __construct() { parent::__construct(); + header("Access-Control-Allow-Origin: *"); + header("Access-Control-Allow-Methods: GET, POST, OPTIONS"); + header("Access-Control-Allow-Headers: Content-Type"); $this->load->model('Ip2location_db1_model'); }