Help Center/ Content Delivery Network/ FAQs/ Troubleshooting/ Why Do I Get an Access Failure and Access-Control-Allow-Origin Error?
Updated on 2024-04-17 GMT+08:00

Why Do I Get an Access Failure and Access-Control-Allow-Origin Error?

This issue occurs due to the cross-origin setting.

Solution:

  1. Click the target domain name on the Domains page.
  2. On the Advanced Settings tab, click Edit next to HTTP Headers.
  3. Select Access-Control-Allow-Origin and set its value to * or a specified domain name.