Yandex Cloud CDN supports cross-domain requests through CORS (cross-origin resource sharing).
In the resource settings, you can:
- Allow CORS requests with any origins (the
Originheader values): Select for the
*value or use the same value as in the
Originheader in the request.
- Allow CORS requests for specific origins: Select for the
Access-Control-Allow-Originheader the same value as in the
Originheader in the request, but only if it's listed as allowed in the settings.
- Prohibit CORS requests: Disable adding the
Access-Control-Allow-Originheader to the responses.
CORS settings apply to all files of the resource.