I followed the instruction for adding CORS header but it doesn't work

I followed this instruction.

I have added Access-Control-Allow-Origin header on the origin server.
And I tried this approach:

But it doesn’t work.
My files still don’t have CORS header.

Including the header (as stated by the API docs) is for purging a specific cache key.

You will need to add the header(s) at your origin server or with Cloudflare Workers (Example here: https://developers.cloudflare.com/workers/examples/cors-header-proxy)

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.