https://jck.jumaker.com/client/slideshow/pub/getList?place=1&need_user_info=true
- 发布:2024-12-01 11:03
- 更新:2024-12-02 11:09
- 阅读:31
产品分类: uniCloud/支付宝小程序云
操作步骤:
预期结果:
可以正常访问
可以正常访问
实际结果:
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.
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, 只有支付宝云出现跨域问题,阿里云可以正常访问