Skip to content

Commit 02a7d03

Browse files
daisyfaithaumaGregBrimble
authored andcommitted
[BRAPI] request headers (#22043)
* request headers * edits * Update automatic-request-headers.mdx
1 parent 22e3b15 commit 02a7d03

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
pcx_content_type: reference
3+
title: Automatic request headers
4+
sidebar:
5+
order: 2
6+
---
7+
8+
When using the [REST API](/browser-rendering/rest-api/) to fetch content via Browser Rendering, Cloudflare adds the following headers to outbound requests made to the target URL:
9+
10+
| Header | Description |
11+
| -------------------- | ----------------------------------------------------------------------------------- |
12+
| `cf-biso-request-id` | A unique identifier for the Browser Rendering request |
13+
| `cf-biso-devtools` | A flag indicating the request originated from Cloudflare's rendering infrastructure |
14+
15+
:::note[Note]
16+
17+
These headers are unique to Browser Rendering and are automatically included and cannot be removed or overridden (such as via `setExtraHTTPHeaders`). They are intended to ensure transparency, allowing destination servers to identify traffic as coming from Cloudflare Browser Rendering.
18+
19+
:::
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
pcx_content_type: reference
3+
title: Reference
4+
sidebar:
5+
order: 7
6+
group:
7+
hideIndex: true
8+
---
9+
10+
import { DirectoryListing } from "~/components";
11+
12+
<DirectoryListing />

src/content/docs/browser-rendering/rest-api/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pcx_content_type: navigation
33
title: REST API
44
sidebar:
5-
order: 3
5+
order: 2
66
---
77

88
The REST API is a RESTful interface that provides endpoints for common browser actions such as capturing screenshots, extracting HTML content, generating PDFs, and more.

0 commit comments

Comments
 (0)