All Products
Search
Document Center

Object Storage Service:0048-00000401

Last Updated:Jun 04, 2026

Problem description

When you call a data API operation on OSS using a public endpoint, OSS returns HTTP status code 400 and the error code PublicEndpointForbidden.

Cause

Starting March 20, 2025, 00:00:00 (UTC+8), accounts that activated OSS on or after that date cannot call data API operations via the default public endpoint for buckets in the Chinese mainland. OSS blocks these requests and returns the PublicEndpointForbidden error.

Example

The following request uses the default public endpoint of the China (Hangzhou) region to call the GetObject operation:

GET /oss.jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2012 06:38:30 GMT
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e

OSS blocks the request and returns:

  • HTTP status code: 400

  • Error code: PublicEndpointForbidden

Solutions

Select the solution that matches your access pattern:

  • Public internet access — bind a custom domain name. To continue calling data API operations on OSS over the public internet, bind a custom domain name to your bucket. For more information, see Access OSS through a custom domain name.

  • Virtual Private Cloud (VPC) access — use the internal endpoint. If your application runs in an Alibaba Cloud VPC, switch to the internal endpoint. No additional configuration is required.

References

For the full scope of affected data API operations and future policy changes, see OSS Update Notice: Policy Change in Calling Data API Operations via the Default Public Domain Name.