From 6ffc780ab71ac5e076de814b81b8c2a3c38073db Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Thu, 10 Oct 2019 14:46:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81cors=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E5=9C=A8cdn=E5=A4=84=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/advertise/controllers/index.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/application/third_party/advertise/controllers/index.php b/application/third_party/advertise/controllers/index.php index 25e59be9..3b35b64c 100644 --- a/application/third_party/advertise/controllers/index.php +++ b/application/third_party/advertise/controllers/index.php @@ -64,7 +64,6 @@ class Index extends CI_Controller public function ad_edit() { - header('Access-Control-Allow-Origin: *'); $ad_title = $this->input->post('ad_title'); $ad_content = $this->input->post('ad_content'); $ad_type = ''; @@ -111,7 +110,6 @@ class Index extends CI_Controller //添加新广告节点 public function add($is_parent_id, $is_ajax = true) { - header('Access-Control-Allow-Origin: *'); $insert_id = $this->InfoStructures_model->Add($is_parent_id); if ($insert_id && $ad_id = $this->advertise_model->add_advertise($insert_id, 'New tree', $this->config->item('site_code'), time())) { $data[] = array('name' => 'ok', 'value' => $insert_id);