Overview
This article mainly introduces how to set up CORS access for websites accelerated by Alibaba Cloud Content Delivery Network.
Background information
If a CDN node receives a non-cross-origin request for the first time after Alibaba Cloud CDN is enabled for a website, the CDN node caches the requested file without the CORS header. Before the cached file expires, errors are returned to all cross-origin requests due to the absence of the CORS header information. This situation can be avoided by setting CORS header in the way of Alibaba Cloud Content Delivery Network custom Header.
Application scope
- CDN