0040-00000031

更新时间:2023-02-16 09:46:58

问题描述

处理的图片开启了原图保护。

问题原因

处理的图片开启了原图保护。

问题示例

GET /example_image.jpg?x-oss-process=image/format,webp HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml
Content-Length: 123

处理的图片example_image.jpg开启了原图保护,以非样式的形式直接访问,导致该错误。

匿名访问者只能使用携带样式参数的请求进行访问。

解决方案

创建样式webp,内容为image/format,webp

GET /example_image?x-oss-process=style/webp HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml

匿名访问者通过样式形式对开启原图保护的图片进行图片处理。

相关文档

原图保护

  • 本页导读 (1)
  • 问题描述
  • 问题原因
  • 问题示例
  • 解决方案
  • 相关文档
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等