文件地址:application/config.php 修改配置项:cors_request_domain
//允许跨域的域名,多个以,分隔,* 号表示所有 'cors_request_domain' => 'localhost,127.0.0.1,www.test.com',