• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 57 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0030 秒)

11. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 83%]

...ccess-Control)请求时,是否使用认证信息(例如cookie或授权的header)。 默认为 `false。` | | timeout | number | 请求超时时间 | ​ `withCredentials`这个属性一般用到不多,这里我们简单介绍下,在web中,发送同域的请求浏览器会将`cookie`自动加...

来源: Laya2.0_文档 发布时间: 20210715

12. laya.net.HttpRequest [ 83%]

...rl:String, data:* = null, method:String = get, responseType:String = text, headers:Array = null):void 发送 HTTP 请求。 HttpRequestEvents Event Summary Defined By  complete请求结束后调度。HttpRequest  error请求出错时调度。HttpRequest  progress请求进度改变时调度。...

来源: Laya2.0_api 发布时间: 20190513

13. 加载3D资源时报错 No 'Access-Control-Allow-Origin' header is present on the requested resource. [ 83%]

加载3D资源时报错 No 'Access-Control-Allow-Origin' header is present on the requested resource. 我把3D资源放到cdn服务器上,在加载.lh, .ls, .lm等3D资源时报错 No 'Access-Control-Allow-Origin' header is present on the requested resource. 资源域名和index.html不在一个...

来源: Laya_社区 发布时间: 20170927

14. 改变不了请求消息头,已近设置了 [ 82%]

改变不了请求消息头,已近设置了 let headers:Array<any> = new Array<any>(); headers.push("Content-Type", "application/json") //headers={"Content-Type":"application/json"} //let answers={"answers":core.CommonData.DaTi,"examUuid":network.HttpHelper.compile(core.CommonData.Uui...

来源: Laya_社区 发布时间: 20180208

15. XMLRequest在layaNative下请求崩溃,请求官方协助! [ 82%]

...pe', 'application/json;charset=UTF-8', "sessionid", this.sessionId]是http header请求头的参数,在LayaAir 1.0下是正常的,在LayNative 1.0 (版本:1.72)下会使APP崩溃退出,必然出现,问题在于sessionid参数,这个是我们自定义的header,如果去掉就不会崩...

来源: Laya_社区 发布时间: 20190829

16. 求解关于跨域的具体操作 [ 79%]

求解关于跨域的具体操作 在request header加上Origin 求解下代码的具体操作 初次接触不知道怎么写 之前我个人写的 不知道是不是在这个里面 var xhr = new XMLHttpRequest(); xhr.open("GET",url, true) xhr.setRequestHeader("Accept", "*/*"); xhr.setRequestHeader...

来源: Laya_社区 发布时间: 20180704

17. post提交问题 [ 78%]

...t cannot load http://xxx.xxx.xxx/subData. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access. The response had HTTP status code 500. 后台是用c#写的,请问出现这问题怎么解决,提交图片是OK的,提交数...

来源: Laya_社区 发布时间: 20171225

18. 请问如何可以访问外部图片 [ 78%]

...来自: 访问外部图片链接 1、通过server来访问 2、如果出现header类似报错,需要服务器端添加header头协议,具体可以网上搜下如何解决浏览器跨域,有对应说明 3、如果是访问微信/QQ头像,可以参考下:http://ask.layabox.com/question/2270 ...

来源: Laya_社区 发布时间: 20170213

19. request failed status:0 text: IOS HttpRequest [ 77%]

...nHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); var headers = []; headers.push("Content-Type"); headers.push("application/json"); hr.send('http://xxxxxxxxxxxxxxxxxx', JSON.stringify(data), 'post', 'json',headers);<strong></strong>  浏览器 可以正常 访问 ...

来源: Laya_社区 发布时间: 20170620

20. HttpRequest问题 [ 77%]

...18-02-08 14:11 看了下,我们是数据请求,重新修改后也加了header("Access-Control-Allow-Origin: *"),发布后还是这种情况。。重点是我们现在请求的并不是自己的服务器,是请求微信支付接口的。。这种要如何解决啊? qian • 2018-0...

来源: Laya_社区 发布时间: 20180208