1.0.2 • Published 3 years ago

cors-image v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

cors-image

经常碰见一些图片被CORS, 因为请求头中新增了 cross-origin-resource-policy: same-origin, 导致直接img或者背景图无法显示。

install 安装

npm install cors-image --save

usage 使用

import corsImage from "cors-image"
Vue.use(corsImage.vue)

tip 说明

  1. 如果请求头中x-frame-options: SAMEORIGIN,那就彻底凉凉了
  2. 性能不好,可能会造成滑动卡顿
  3. 暂时只有vue版本,react版本稍后发布
  4. 移动端上显示可能有问题,暂时无法解决
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago