hilongjw / vue-lazyload

A Vue.js plugin for lazyload your Image or Component in your application.
http://hilongjw.github.io/vue-lazyload/
MIT License
8.01k stars 868 forks source link

referrerpolicy="no-referrer"不生效 #473

Open iewoai opened 3 years ago

iewoai commented 3 years ago

这样设置可以:

  <div ref="imgItem">
    <img :src="item.img" referrerpolicy="no-referrer">
  </div>

这样不行:

  <div ref="imgItem">
    <img v-lazy="item.img" referrerpolicy="no-referrer">
  </div>

问题: dom显示带有设置的属性值了,但查看图片请求头并未生效

carrot2018 commented 2 years ago

请问解决了吗

justJokee commented 2 years ago

Hey,you can try the forked repository https://github.com/justJokee/vue-lazyload, some attributes which were added to img tag will add to Image instance too when image really be loaded