Skip to content

[bug]: 图片403问题 #675

Open
Open
@GabrielXie

Description

@GabrielXie

问题描述

有的图片有防盗链,直接在markdown里放图片会出现403

重现步骤

  1. markdowm: ![图:数据中台与业务中台](https://files.mdnice.com/user/26302/bad20626-810a-4aec-9164-c269965dcc8a.png)
  2. 直接打开可以正常显示
  3. 运行后博客上403
    image

依赖版本

  • node.js: 16.19.1
  • vuepress-theme-vdoing: 1.12.6

解决方案

在config.ts中添加head标签,解决图片403防盗链问题
['meta', { name: "referrer", content: "no-referrer"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions