header("Access-Control-Allow-Origin: *");//允许跨域请求ip,*代表所有
header('Access-Control-Allow-Methods: GET, POST,DELETE,OPTIONS');//允许请求类型
header('Access-Control-Allow-Headers: x-requested-with, content-type, x-token');
header('Content-Type: text/html; charset=utf-8');// 返回数据类型
header('Access-Control-Allow-Credentials: true');// 是否可以携带cookie