api请求允许跨域的问题

让api请求允许跨域

header("Access-Control-Allow-Origin:*");
header('Access-Control-Allow-Credentials:true');
header('Access-Control-Allow-Methods:GET, POST, OPTIONS');

原文地址:https://www.cnblogs.com/songadmin/p/13111809.html