Help Center> Content Delivery Network> FAQs> Functions and Usage> Functions> Does CDN Support Cross-Origin Resource Sharing?
Updated on 2022-10-09 GMT+08:00

Does CDN Support Cross-Origin Resource Sharing?

Yes, but you need to configure it on the CDN console.

If you only configure cross-origin resource sharing on the origin server, an error will be reported to a user when the user requests cross-origin content. In this case, you need to add the Access-Control-Allow-Origin parameter to the HTTP header configuration on the CDN console. For details, see HTTP Header Settings (Cross-origin Requests).

Functions FAQs

more