跨域请求报错问题

做接口请求的时候,有时会遇到跨域的问题,可以在请求的时候加上   

header('Access-Control-Allow-Origin:*');

原文地址:https://www.cnblogs.com/songxuan/p/8052815.html