Request basics
The four request/response shapes the worker speaks: a serialized model, an outbound fetch, a redirect and a validated POST.
Response.Jsonfetch302Results.Error
1. JSON response
The worker answers with the shared ApiResponse model from src/Shared, serialized to JSON.
2. Proxy fetch
The worker fetches a remote URL itself and tags the response with x-proxied-by: Workers.
The request goes out from Cloudflare's network, not from this browser.
3. Redirect
A top-level navigation gets a real 302. A cross-origin fetch cannot follow it without CORS headers, so for those the worker returns the target in a location header instead.
4. Request policy
The worker accepts a bounded JSON reading and validates it. Send one that passes and one that breaks every rule (device id, range, tag count).
Calls made from this page
No calls yet.