可以使用

- 发布:2024-06-04 13:42
- 更新:2024-06-04 14:01
- 阅读:125
产品分类: uniCloud/支付宝小程序云
操作步骤:
预期结果:
可以使用
可以使用
实际结果:
可以使用
可以使用
bug描述:
DCloud前端托管配置了跨域还是报错:
Access to XMLHttpRequest at 'https://env-00jxgwihfnih.api-hz.cloudbasefunction.cn/functions/invokeFunction' from origin 'https://face.exchangebank.cn' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
宇鑫001 (作者)
2024-06-04 13:58
套马杆的套子
回复 宇鑫001:
https://face.exchangebank.cn是你的域名么,如果是,域名跨域也加上试试呢
2024-06-04 14:01
宇鑫001 (作者)
回复 套马杆的套子: 自己的也加上去可以了
2024-06-04 14:03
套马杆的套子
回复 宇鑫001: 现在可以了是吧?那就行
2024-06-04 14:04