我把自己做的H5部署到了github上。域名是wgmichael.github.io
我在服务空间上,把wgmichael.github.io添加了进去。请求云对象的方法,不生效。
我只能再加新配置一个*号。允许所有请求都可以行得通。 请求云对象的方法,生效。
我的云服务空间是阿里云的。
这是什么问题? 是我配置得有问题吗? 我这是一个非常简单的网站,就请求一些很简单的数据而已,不涉及到登录那些。
我开发的的小东西的访问地址是 https://wgmichael.github.io/sincerityworld
2***@qq.com (作者)
打印域名是https://wgmichael.github.io。 都是复制粘贴填的配置。这里没有问题
2025-08-25 12:38
2***@qq.com (作者)
Access to XMLHttpRequest at 'https://api.next.bspapp.com/client' from origin 'https://wgmichael.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error
index-CbjyzVd-.js:25 POST https://api.next.bspapp.com/client net::ERR_FAILED 200 (OK)
报的错误是这样的
2025-08-25 12:45
DCloud_云服务_LQ
回复 2***@qq.com: 你好,麻烦进群反馈 https://im.dcloud.net.cn/#/?joinGroup=6581841e3e585b555acec05c
2025-08-26 10:43