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'); }