请问如何在web中访问云托管中的api?
<script src="https://res.wx.qq.com/open/js/cloudbase/1.1.0/cloud.js"></script>
<script>
aaa();
async function aaa () {
var c1 = new cloud.Cloud({
identityless: true,
resourceAppid: 'xxxx',
resourceEnv: 'xxxx'
})
await c1.init()
const res = await c1.callContainer({
path: '/xxxx/api',
method: 'GET',
})
console.log(res)
}
</script>
运行后提示跨域问题,但我程序里已经做了跨域设置了啊