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

大约有 156 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0029 秒)

31. 调试跨域问题 [ 76%]

调试跨域问题 No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access. 用FB 启动chrome出这个错,但是在layaIde里面启动没这个错,想知道一下原因,求指点 2018-04-09 添加评论 免费帖 --> 分...

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

32. Geolocation.getCurrentPosition 获取地理问题 [ 76%]

...啊? 网页浏览器返回错误:ERROR(Permission Denied): Only secure origins are allowed (see: https://goo.gl/Y0ZkNV). 手机浏览器返回错误:ERROR(Permission Unavailable): Origin does not have permission to use Geolocation service. 2018-04-14 添加评论 免费帖 --> 分享 微博 QZ...

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

33. 1整天了,还是没解决加载本地文件问题 [ 76%]

... to Image at 'file:///E:/layawork/myLaya12/bin/h5/war/background.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. 加载本地文件总是报错, chrome 浏览器快捷方式有加 --allow-file-access-from-files 了,还是...

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

34. 怎么改变资源的基础路径 [ 75%]

...在把Loader的_http.send(url, null, "get", contentType,["Origin","http://res-1253556544.file.myqcloud.com"]); 改成这样,但是报错Refused to set unsafe header "Origin" yonghua5416 • 2017-08-29 12:44 外网要通过Q或者微信分享

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

35. The AudioContext was not allowed to start. [ 75%]

...现The AudioContext was not allowed to start. An AudioContext in a cross origin iframe 报错!怎么解决An AudioContext in a cross origin iframe报错 Failed to construct 'AudioContext' 哪位大佬知道,微信小游戏AudioContext为啥获取不到值 粒子3D Start Rotation问题 粒子特...

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

36. 引擎能打包成html页面,然后直接用手机webview加载吗? [ 75%]

...ps/fb77dedd-fee0-40dd-9a63-4e00cb6b6a89/1.0.0/index.html-line0 :Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. 2017-07-07 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 那你...

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

37. 关于调试跨域的问题 [ 74%]

...接口,在fb里面用layaCompiler运行,报错No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access. 但是在layaIde里面用chrome调试,正常运行,没有跨域, 为什么同一个工程,打开同一个chromeliu...

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

38. Laya.HttpReques在浏览器上出现错误 [ 74%]

Laya.HttpReques在浏览器上出现错误 No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ''is therefore not allowed access. 请问该如何解决呢,感谢 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

39. 新手常见问题:配置环境之后点击运行报错、黑屏(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 73%]

...以nginx为例: ```nginx http { ...... add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers X-Requested-With; add_header Access-Control-Allow-Methods GET,POST,OPTIONS; ...... } ``` 这样就可以实现GET,POST,OPTIONS的跨域请求的支持 也可以 `add_header Acce...

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

40. as3用flashdevelop编译加载不了图片 [ 73%]

...file:///D:/My_HTML5_Project/AS3/project/LoadImage/bin/h5/comp/a1.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. 好像是说不允许加载,请问怎么解决? 虽然IDE可以加载图片成功,但还是习惯用FD编...

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