Lumen 跨域请求 返回数据问题
现在碰到以下问题
有个项目要对 lumen api 接口进行跨域请求 获取数据时,出现了异常的XMLHttpRequest cannot load http://local.api.ditan/adminApi/cellList. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
问题
为什说异常,因为我在请求数据量,举个例子,大概40条数据是,是正常的,超过40条,之后就一直报错了。
我还特意用原生php写了个同样的响应数据,结果 怎么都没有问题
请高手帮忙解答下
推荐文章: