不需要cors,可在cdn处设置

mobile-first
LMR 6 years ago
parent e5ec2421ec
commit 6ffc780ab7

@ -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);

Loading…
Cancel
Save