tencent cloud

Notification: Default Function Domain Access for Compliance
2025-09-03 18:31:07

Dear User,
Greetings!
To ensure the overall service security and stability of the default access domains for edge functions under your Tencent Cloud account, starting from September 8, 2025, EdgeOne will adjust the access behavior of the default domains provided for edge functions. The specific adjustment details and recommended preview solutions after the adjustment are hereby notified as follows:

Adjustment Details
The access behavior of the default domain will be distinguished based on the geographical location of the client's request IP. The specific behaviors are as follows:

When the client request IP is within Mainland China
When a user accesses the edge function using the default domain, the browser preview will no longer be supported, and a file download will be triggered directly.
The edge function service will, by default, add the Content-Disposition: attachment header to the HTTP response for requests originating from client IPs within Mainland China.
If your function's HTTP response headers already include a Content-Disposition header, the edge function service will uniformly set its value to attachment.
Due to this adjustment, the built-in Web debugging tool will be unable to provide a preview page when accessed from a Mainland China IP.

When the client request IP is outside Mainland China
This change will not affect the access behavior, which will remain consistent with the current state.
The function's default access domain will not automatically add the Content-Disposition: attachment header. The value of this header will be determined by the function's code logic or the origin server.

Recommended Solutions for Preview & Debugging
To ensure you can still verify your function's logic and preview the returned page, we recommend the following solutions:
1. Bind a Custom Domain (Recommended)
After configuring trigger rules for your function and binding a custom acceleration domain, you can trigger the function response through this custom domain and preview the results normally in a browser. Reference: Function Trigger

2. Use an API Client for Debugging
You can use a command-line tool (e.g., curl) or an API client (e.g., Postman) to send direct HTTP requests and retrieve the response content and headers.
Example: Use the curl command to send a request to the default access domain of the associated edge function.

3. Use the Edge Function's Web Debugging Tool
The Edge function provides web debugging tools, allowing you to directly simulate real users sending HTTP requests on this page. The specific details for reference are shown in the table below.

Reference: Web Debugging


Sincerely,
Tencent Cloud

img