Behind edge ✓host verge.run.placeproto httpscdn-loop vergcloud-staging; count=1
← Feature map

CORS / Transform Rules lab

Origin sends no CORS headers. Configure Transform Rules in the panel, then confirm Access-Control-* appear on the response.

Quick setup — CORS / Transform Rules lab

Applies Verge config for this lab (cors). Preflight (active domain + reachable CDN) runs first and must pass. Key stays in memory and is proxied server-side.

Example config

  • Match path /api/origin/cors/probe*
  • add_header Access-Control-Allow-Origin: * (or your origin)
  • Optional: Allow-Methods GET,OPTIONS; Max-Age 600

Setup guide

CDN → Domain [domain] → Transform Rules

Suggested config

  • Match path /api/origin/cors/probe*
  • add_header Access-Control-Allow-Origin: * (or your origin)
  • Optional: Allow-Methods GET,OPTIONS; Max-Age 600

Verify

  1. GET probe before rule → no Access-Control-* in key headers
  2. Apply transform rule → GET/OPTIONS show CORS headers
  3. Origin body fingerprint ORIGIN-CORS-PROBE still present on GET

Origin routes

All probes are same-origin through the CDN hostname. Open routes in a new tab to compare edge vs origin headers.

No request yet — hit a button above to run a probe.