Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
21c79b94
U
uni-app
项目概览
DCloud
/
uni-app
3 个月 前同步成功
通知
719
Star
38705
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
You need to sign in or sign up before continuing.
提交
21c79b94
编写于
1月 05, 2021
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: uniCloud cors
上级
2b049c11
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
0 deletion
+4
-0
docs/uniCloud/quickstart.md
docs/uniCloud/quickstart.md
+4
-0
未找到文件。
docs/uniCloud/quickstart.md
浏览文件 @
21c79b94
...
...
@@ -464,6 +464,10 @@ H5前端js访问云函数,涉及跨域问题,导致前端js无法连接云
*
方式1:在uniCloud web控制台绑定测试期的地址为安全域名,如配置:localhost:8080、192.168.0.1:8080(建议直接使用内置浏览器测试)
*
方式2:在外部浏览器安装跨域插件,详见:
[
https://ask.dcloud.net.cn/article/35267
](
https://ask.dcloud.net.cn/article/35267
)
。要跨域的地址,详见上述文档中小程序配置安全域名章节。
**注意**
-
目前阿里云跨域配置不对云存储及前端网页托管生效,表现为云存储中图片绘制到canvas会
[
污染画布
](
https://developer.mozilla.org/zh-CN/docs/Web/API/Canvas_API/Tutorial/Using_images#Using_other_canvas_elements
)
,前端网页托管的网页不可在iframe中使用
## cli项目中使用uniCloud
如果要在cli项目中使用uniCloud,可以参考以下步骤
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录