w***@163.com
w***@163.com
  • 发布:2024-12-01 11:03
  • 更新:2024-12-02 11:09
  • 阅读:31

【报Bug】支付宝小程序云,客户端访问云对象url参数化报跨域错误, 在支付宝小程序云配置跨域也会报错, 阿里云正常

分类:uniCloud

产品分类: uniCloud/支付宝小程序云

操作步骤:

https://jck.jumaker.com/client/slideshow/pub/getList?place=1&need_user_info=true

预期结果:

可以正常访问

实际结果:

Access to XMLHttpRequest at 'https://jck.jumaker.com/client/slideshow/pub/getList?place=1&need_user_info=true' from origin 'http://localhost:8080' 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.

bug描述:

客户端 uni-app, 通过 http://localhost:8080 访问 url参数化 云对象会报跨域报错,在支付宝云小程序配了 localhost:8080, 只有支付宝云出现跨域问题,阿里云可以正常访问

2024-12-01 11:03 负责人:无 分享
已邀请:
DCloud_uniCloud_CRL

DCloud_uniCloud_CRL

现在好了吗?

要回复问题请先登录注册