5***@qq.com
5***@qq.com
  • 发布:2025-06-16 17:29
  • 更新:2025-06-16 20:06
  • 阅读:66

uni-app app端 image组件加载http在线图片报错

分类:uni-app
<template> <view> <view class="uni-margin-wrap"> <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" duration="duration"> <swiper-item v-for="(item, index) in bannerData" :index="index" :key="index">
<image :src="item.ImgFile" class="swiper-item" mode="aspectFill" />
</swiper-item>
</swiper>
</view>
</view>
</template>
页面设计是这个
bannerData=[{ImgFile:"http://xxx/UploadFiles/AppBanner/20190203113448646.jpg"}];
运行报错
Clear-Site-Data header on 'http://xxx/UploadFiles/AppBanner/20190203113448646.jpg': Not supported for insecure origins. at __uniappview.html:0
这该怎么解决,除了改用https路径
2025-06-16 17:29 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

hello , 可以提供一下完整的可以运行的代码吗?

  • 1***@qq.com

    遇到同样的问题了。今天打了个新版本,就不行了,就不显示http图片了。线上的旧版本还

    可以显示

    2025-06-16 20:23

要回复问题请先登录注册