ThinkPHP5.0解决h5跨域问题

204 阅读1分钟

入口文件index.php中添加:

header('Access-Control-Allow-Headers: content-type,token');