halo-dev / plugin-s3

为 Halo 提供 S3 对象存储协议的存储策略
https://halo.run/store/apps/app-Qxhpp
GNU General Public License v3.0
35 stars 21 forks source link

在谷歌浏览器无法查看图片 #133

Closed Jacen-jiajia closed 7 months ago

Jacen-jiajia commented 7 months ago

我绑定了七牛云的对象存储, 然后上传都是正常的, 也绑定的存储的域名,但是在谷歌浏览器查看的时候,一直访问的是https的请求,无法访问http的, 我换成火狐就可以了, 这个怎么解决呢? 12 Snipaste_2024-04-09_14-33-18

longjuan commented 7 months ago

你halo是不是加了https?谷歌可能会阻止https网站访问http资源,请检查一下。

ruibaby commented 7 months ago

这是 Chrome 的策略,和插件以及 Halo 都无关,如果你一定想要在 https 网站下加载 http 资源,你可以在 Halo 设置 -> 代码注入的全局 head 中添加这个 meta 标签:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />

但不是特别推荐。

Jacen-jiajia commented 7 months ago

好的,谢谢了, 目前我已经把这个资源的换成https的了, 原来用的七牛云https的得需要花钱, 现在换成又拍云可以免费用https的.

ruibaby commented 7 months ago

/close

f2c-ci-robot[bot] commented 7 months ago

@ruibaby: Closing this issue.

In response to [this](https://github.com/halo-dev/plugin-s3/issues/133#issuecomment-2055841457): >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.