CORS in Cloud CDN
Written by
Updated at November 11, 2025
Yandex Cloud CDN supports cross-domain requests
In the resource settings, you can:
- Allow CORS requests with any origins (the
Originheader values): Set theAccess-Control-Allow-Originheader to*or to theOriginheader’s value in the request. - Allow CORS requests for specific origins: Set the
Access-Control-Allow-Originheader to the value of theOriginheader in the request, but only if it is listed as allowed in the settings. - Deny CORS requests: Disable adding the
Access-Control-Allow-Originheader to responses.
CORS settings apply to all files of the resource.
Note
To make sure cross-domain requests are enabled, additionally set up CORS on a source if the source supports this mechanism. For example, CORS configuration is required for Object Storage buckets.
When you use the EdgeCDN provider, the maximum number of CORS domains when responding to client requests is 20. Learn more about limits and restrictions.