diff --git a/application/controllers/infofix.php b/application/controllers/infofix.php index c6963341..598dd911 100644 --- a/application/controllers/infofix.php +++ b/application/controllers/infofix.php @@ -193,6 +193,7 @@ class infofix extends CI_Controller */ function get_by_icid($ic_id) { + header('Access-Control-Allow-Origin: *'); $ic = $this->infoContents_model->get_ic_contents2($ic_id); $json = $this->infoMetas_model->get($ic_id, 'AMP_JSON'); $use = $this->infoMetas_model->get($ic_id, 'AMP_BODY_PC_STATUS'); @@ -217,6 +218,7 @@ class infofix extends CI_Controller function update_by_icid() { + header('Access-Control-Allow-Origin: *'); $ic_id = $this->input->get_post('ic_id'); $ic_content = $this->input->get_post('ic_content'); $this->infoContents_model->force_update($ic_id, $ic_content);