生成的图片地址,小程序模拟器访问没有问题,pc浏览器也没问题。但是开发版环境和线上环境中,无法访问图片资源,显示404错误,有哪位大神遇到过?
模拟器访问响应消息头:
- Request Method: GET
- Status Code: 200 OK
- Remote Address: 60.217.246.219:443
- Referrer Policy: unsafe-url
- Response Headers
- Accept-Ranges: bytes
- Ali-Swift-Global-Savetime: 1666832845
- Connection: keep-alive
- Content-Length: 15173
- Content-MD5: 4FD9USsqbh98/OuJ9aYScg==
- Content-Type: image/jpeg
- Date: Thu, 27 Oct 2022 01:07:25 GMT
- EagleId: 3cd9f69616668328449463776e
- ETag: "E050FD512B2A6E1F7CFCEB89F5A61272"
- Last-Modified: Tue, 25 Oct 2022 05:49:02 GMT
- Server: Tengine
- Timing-Allow-Origin: *
- Via: cache30.l2cn1807[220,219,200-0,M], cache38.l2cn1807[221,0], kunlun10.cn2206[238,238,200-0,M], kunlun2.cn2206[240,0]
- X-Cache: MISS TCP_MISS dirn:-2:-2
- x-oss-cdn-auth: success
- x-oss-hash-crc64ecma: 16869370607212489153
- x-oss-object-type: Normal
- x-oss-request-id: 6359D9CD733AC83230F2A947
- x-oss-server-side-encryption: AES256
- x-oss-server-time: 52
- x-oss-storage-class: Standard
- X-Swift-CacheTime: 15552000
- X-Swift-SaveTime: Thu, 27 Oct 2022 01:07:25 GMT
- Request Headersview source
- Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8
- Accept-Encoding: gzip, deflate, br
- Connection: keep-alive
- Host: res.newcards.cn
- Referer: https://servicewechat.com/wx19538ac9c64f8072/devtools/page-frame.html
- Sec-Fetch-Dest: image
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Site: cross-site
- User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.06.2210141 MicroMessenger/8.0.5 Language/zh_CN webview/23 desktopapp miniprogram port/18052 token/a2a47d51de557da8114167277332611a runtime/2
- Query String Parametersview source
- view URL encoded
- OSSAccessKeyId: LTAI5tNe3WjfkdDrTmmgDLKr
- Expires: 1666836444
- Signature: hv1K5zudOMTonR742u0WCvhWEVk=
阿里云工程师从昨天下午一直在排查,到现在要我提供小程序里使用image标签 访问图片的响应消息头,我也不知道如何提供,问题还在搁置,请各位施以援手,谢谢
时至今日,我还存在同样的问题