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

CORS 策略导致无法正常显示皮肤 #2

Open
Thexiaoyuqaq opened this issue Oct 8, 2023 · 9 comments · Fixed by #3
Open

CORS 策略导致无法正常显示皮肤 #2

Thexiaoyuqaq opened this issue Oct 8, 2023 · 9 comments · Fixed by #3
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Thexiaoyuqaq
Copy link

URL:http://192.168.1.31:57680/url/image/both?skinUrl=https://bbs.459mc.cn/td.png&definition=1.5&transparent=false
返回:
both
换了很多链接都没用
我也尝试使用公共地址也是这样的问题

@Thexiaoyuqaq
Copy link
Author

网站和这个部署在一个网络下的

@SerinaNya
Copy link
Owner

有没有一种可能是因为你的 https://bbs.459mc.cn/td.png 报 ERR_SSL_PROTOCOL_ERROR 导致的 🥹

Repository owner deleted a comment from Thexiaoyuqaq Oct 8, 2023
@SerinaNya SerinaNya self-assigned this Oct 8, 2023
@SerinaNya SerinaNya added the question Further information is requested label Oct 8, 2023
@Thexiaoyuqaq
Copy link
Author

有没有一种可能是因为你的 https://bbs.459mc.cn/td.png 报 ERR_SSL_PROTOCOL_ERROR 导致的 🥹
不是吧 https的配置是正确的,linux也可以正常从域名下载文件

@SerinaNya
Copy link
Owner

在刚刚,我注意到 TLS 问题已被修复,并产生了如下报错。

Access to image at 'https://bbs.459mc.cn/td.png' from origin '✕✕✕✕' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

这是我们的错误配置造成的问题,我们应该允许宽松的 CORS 政策,但我们忘了这么做。

目前,临时的措施是 在你的网站上设置 CORS 头部 以允许此应用从你的网站上加载文件。

对于此问题我们会尽快修复,并更新进展,感谢你的贡献!

@SerinaNya SerinaNya added the bug Something isn't working label Oct 9, 2023
@SerinaNya SerinaNya changed the title 无法正常显示 CORS 策略导致无法正常显示皮肤 Oct 9, 2023
SerinaNya added a commit that referenced this issue Oct 9, 2023
@SerinaNya
Copy link
Owner

我们现在已经修复了这个 bug,请等待服务器部署此更新。

@SerinaNya SerinaNya linked a pull request Oct 9, 2023 that will close this issue
@Thexiaoyuqaq
Copy link
Author

我更新之后
问题并没有得到解决
也许你可以尝试一下
http://www.459mc.cn:8008/url/image/both?skinUrl=https://bbs.459mc.cn/td.png&definition=1.5&transparent=false

@Thexiaoyuqaq
Copy link
Author

@jinzhijie

@Thexiaoyuqaq
Copy link
Author

我根据比对发现 似乎是和分辨率的大小有关系:
(可用) (64X32) https://raw.githubusercontent.com/Monadical-SAS/minecraft_skin_generator/main/images/purple.png
(不可用 (64X64)https://bbs.459mc.cn/td.png 问题出现:None

@SerinaNya SerinaNya reopened this Oct 10, 2023
@SerinaNya
Copy link
Owner

此问题有待进一步检查

@SerinaNya SerinaNya added help wanted Extra attention is needed and removed question Further information is requested labels Apr 10, 2024
@SerinaNya SerinaNya pinned this issue Apr 10, 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 help wanted Extra attention is needed
Development

Successfully merging a pull request may close this issue.

2 participants