Cloudflare Workers .NET / request basics
worker check deferred

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.

/api/redirect?to=https%3A%2F%2Fexample.com

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.

An unhandled error has occurred. Reload 🗙