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

Custom headers lab

Origin sets baseline headers. Use page-rule response add/hide to inject an edge marker and strip the hide-me header.

Quick setup — Custom headers lab

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

Example config

  • URL: /api/origin/headers/baseline*
  • res_custom_headers: add X-Playground-Edge-Marker: from-edge
  • res_hide_headers: hide X-Playground-Hide-Me
  • Leave X-Playground-Baseline visible (origin-set)

Setup guide

CDN → Domain [domain] → Page Rule → custom headers

Suggested config

  • URL: /api/origin/headers/baseline*
  • res_custom_headers: add X-Playground-Edge-Marker: from-edge
  • res_hide_headers: hide X-Playground-Hide-Me
  • Leave X-Playground-Baseline visible (origin-set)

Verify

  1. Without rules: Baseline + Hide-Me present, no Edge-Marker
  2. With rules: Edge-Marker present, Hide-Me absent, Baseline still origin-set

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.