图片无法加载,显示 302 Moved Temporously 状态码

时间:2021-07-29 06:06:45

标签: html image url request

所以我只是尝试通过 img 标签加载图像,但是,它返回 302 Moved Temporously 状态代码并且无法显示图像。然后我尝试通过我的网络浏览器加载它(直接进入网址栏),它可以完美加载。那么我可以问一下到底发生了什么问题以及如何正确修复它?

通用标题的图像

enter image description here

图片标签

enter image description here

一般:

Request URL: http://scp-wiki-cn.wdfiles.com/local--resized-images/scp-049/SCP-049/medium.jpg
Request Method: GET
Status Code: 302 Moved Temporarily
Remote Address: 107.20.139.176:80
Referrer Policy: strict-origin-when-cross-origin

响应头:

Date: Thu, 29 Jul 2021 05:44:43 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
X-Wikidot-Backend: 071da5821989de5bc
Location: http://scp-wiki-cn.wikidot.com/scp-049
X-Wikidot-Static-Cache: MISS

请求头:

Host: scp-wiki-cn.wdfiles.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36
DNT: 1
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8
Sec-GPC: 1
Referer: http://localhost:5000/
Accept-Encoding: gzip, deflate
Accept-Language: zh-TW,zh;q=0.9,en-GB;q=0.8,en-US;q=0.7,en;q=0.6

图片链接

enter image description here

0 个答案:

没有答案
相关问题