📜  启用 cors cakephp 代码示例

📅  最后修改于: 2022-03-11 14:54:45.091000             🧑  作者: Mango

代码示例1
public function init_result() {

    header("Access-Control-Allow-Origin: *");

    $this->result = array(
        'status' => false,
        'message' => __("please_provide_information"),
        'params' => array(),
    );
}