Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【私有TOKEN不支持图片】头像无法正常加载 #3097

Open
SnowWarri0r opened this issue Dec 30, 2024 · 2 comments
Open

【私有TOKEN不支持图片】头像无法正常加载 #3097

SnowWarri0r opened this issue Dec 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@SnowWarri0r
Copy link
Contributor

描述bug
我使用了NOTION_ACCESS_TOKEN来保障notion不泄漏,目前的头像加载会通过notion图床,但是通过我自己的域名会400
这个是请求的URL,直接访问是没问题的,尝试使用 no-referrer 策略也还是 400。
https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Ffba5f9a7-67fc-4c9c-934b-79070a8eeed7%2F42245265-a132-4d59-a51d-3ab9f53a4756%2F86bee1da361e14a4820978efe81495bc.png?table=collection&id=16bfda6e-8d0b-81f9-b598-000b89019164&t=16bfda6e-8d0b-81f9-b598-000b89019164&width=800&cache=v2

期望的正常结果
头像正常显示。

复现步骤
使用 NOTION_ACCESS_TOKEN,取消 notion 笔记的 publish,然后去访问对应的网站

环境

  • NotionNext版本:4.7.13
  • 主题:hexo(其他的也显示不了)
  • 部署方案:vercel
  • 操作系统: windows,macos
  • 浏览器:chrome

补充说明

@SnowWarri0r SnowWarri0r added the bug Something isn't working label Dec 30, 2024
@SnowWarri0r
Copy link
Contributor Author

SnowWarri0r commented Dec 30, 2024

刚刚发现博客文章内的上传图片也没办法显示
https://www.snowkagura.com/article/tree-array

@qixing-jk
Copy link
Contributor

私有token是无法显示任何图片或者多媒体文件的

@tangly1024 tangly1024 changed the title 头像无法正常加载 【私有TOKEN不支持图片】头像无法正常加载 Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants