服务端设置
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers:content-type");
header("Access-Control-Allow-Methods:POST, GET, OPTIONS");
服务端设置
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers:content-type");
header("Access-Control-Allow-Methods:POST, GET, OPTIONS");