文件上传跨域
B2B2C-SaaS 多元版 · 文件上传跨域
- 文件上传需要配置一下跨域,否则文件上传会因为跨域问题了而上传失败
2. 跨域配置
Section titled “2. 跨域配置”2.1 minio
Section titled “2.1 minio”- 前往
Settings -> API,按需修改 Cors Allow Origin 的值

2.2 阿里云OSS
Section titled “2.2 阿里云OSS”- 官方文档:链接
- 按需修改来源,Methods和headers

2.3 腾讯云COS
Section titled “2.3 腾讯云COS”- 官方文档:链接
- 按需修改来源,Methods和headers

2.4 华为云OBS
Section titled “2.4 华为云OBS”- 官方文档:
- 按需修改来源,Methods和headers

2.5 七牛云KODO
Section titled “2.5 七牛云KODO”- 官方文档:链接
- 按需修改来源,Methods和headers

2.6 亚马逊云S3
Section titled “2.6 亚马逊云S3”- 官方文档:
- 前往对应桶的 权限 -> 跨源资源共享,按需修改Json数据
