Fetch metadata is a set of Sec-Fetch-* request headers — Sec-Fetch-Site, Sec-Fetch-Mode, Sec-Fetch-Dest, and Sec-Fetch-User — that a browser attaches to every request to describe where it came from and what it's for. Unlike most headers, page JavaScript can't set or override them.
Sec-Fetch-Site describes the relationship between the requesting page and the target: same-origin, same-site, cross-site, or none for a directly user-initiated request like typing a URL or clicking a bookmark. Sec-Fetch-Mode gives the Fetch API request mode — navigate for a page load, cors or no-cors for a script-initiated fetch. Sec-Fetch-Dest names what the response will be used for — document, script, image, empty for a bare fetch() or XHR call. Sec-Fetch-User is only present, and always ?1, when a real user action triggered the request.
These are what the Fetch Metadata spec calls forbidden request headers: the browser sets them from its own knowledge of the request's context, and no amount of JavaScript on the page can change or forge them. They're also only sent to HTTPS origins, so a plain http:// server never sees them at all.
The spec's primary purpose is defending against cross-site request forgery and similar attacks — a server can reject a state-changing request whose Sec-Fetch-Site says cross-site when it should say same-origin. Web.dev's own guidance to implementers is to tolerate missing headers rather than block on their absence, since not every browser sends the full set, which keeps this a soft signal rather than a hard gate on its own.
That softness cuts both ways for automation. A plain HTTP client — Python requests, curl — doesn't send these headers at all unless you set them by hand, which is a detectable gap on a site that checks for them on form or API submissions. A real browser context, including one driven by Playwright or Puppeteer, emits the full, internally consistent set automatically as a side effect of how the request was actually made — document navigation, same-origin fetch, and so on — which is the harder property to fake than any single header value.
import requests
# A real browser derives these from the request's own context; a plain
# client has to set them explicitly if a target checks for them at all.
headers = {
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Dest": "empty",
}
response = requests.get(
"https://example.com/api/items", headers=headers, timeout=15
)How Crawlora handles this
Crawlora's browser-rendering tier produces these headers the same way a real browser does — as a byproduct of an actual navigation or fetch, consistent with the rest of the request — rather than a plain HTTP client that omits them entirely.
Related reading
FAQ
You can set the header values, but a plain HTTP client still won't match everything else a real browser request implies — TLS fingerprint, header ordering, Client Hints — so matching one signal in isolation rarely helps on its own.
By design. The Fetch Metadata spec defines them as forbidden request headers specifically so a page can't lie about its own request context — the browser, not the script, decides the values.
That's the documented purpose, but because they're browser-set and hard to forge consistently, some anti-bot and WAF systems also use their presence and internal consistency as one input among many when scoring a request.
Beyond Fetch Metadata Request Headers (Sec-Fetch-*), Crawlora's own docs cover the rest of the stack — browse the APIs, test a request in Playground, and move from scraping infrastructure work to production data workflows.