CI跨域访问
先说明小白一枚,写了一个接口,调用的时候出现了错误XMLHttpRequest cannot load http://192.168.1.235/**/**/**. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.1.111:3001' is therefore not allowed access.然后百度在<?php下面写了这个 header("Access-Control-Allow-Origin:*");,不行。之后又写了这个$this->output->set_header('Access-Control-Allow-Origin:*');还是不行。使用flash,iOS程序调用都是好的,但是用白鹭就这个问题了。使用的本地服务器。 没有人啊!!!真可怜 有没有人来帮帮小兄弟啊 为啥要跨域呢?没做过游戏了解不多
页:
[1]