All Products
Search
Document Center

Edge Security Acceleration:How do I configure CORS for DCDN?

Last Updated:Nov 21, 2025

Dynamic Content Delivery Network (DCDN) supports whitelist configurations for cross-origin resource sharing (CORS). This topic describes how to configure CORS for DCDN and the relevant notes.

Details

  1. Log on to the DCDN console.

  2. In the navigation pane on the left, click Domain Names.

  3. On the Domain Name page, find the domain name that you want to manage and click Configure.

  4. In the navigation pane on the left of the page that appears, click Caching.

  5. On the Modify Outgoing Response Header tab, click Add.

  6. In the Add Custom HTTP Header dialog box, add the Access-Control-Allow-Origin and Access-Control-Allow-Methods custom response header parameters. For more information about other parameters, see Custom HTTP response header parameters.HTTP头设置

  7. Click OK.

Notes

When you configure CORS whitelists, pay attention to the following:

  • Wildcard domain names are not supported, such as *.aliyundoc.com. You must specify the exact domain names.

  • Only one domain name can be configured in a whitelist for an account.

  • If the origin server uses an OSS domain name and CORS is configured in the OSS and DCDN consoles, the CORS settings in DCDN overwrite the settings in OSS.