Skip to content

Commit d662347

Browse files
edits
1 parent bd43b3f commit d662347

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
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 & 16 deletions
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.
@@ -25,18 +25,3 @@ Before you begin, make sure you [create a custom API Token](/fundamentals/api/ge
2525
Currently, the Cloudflare dashboard displays usage metrics exclusively for the [Workers Binding API method](/browser-rendering/workers-binding-api/). Usage data for the REST API is not yet available in the dashboard. We are actively working on adding REST API usage metrics to the dashboard.
2626

2727
:::
28-
29-
## Automatic request headers
30-
31-
When using the REST API to fetch content via Browser Rendering, Cloudflare adds the following headers to outbound requests made to the target URL:
32-
33-
| Header | Description |
34-
| -------------------- | ----------------------------------------------------------------------------------- |
35-
| `cf-biso-request-id` | A unique identifier for the browser rendering request |
36-
| `cf-biso-devtools` | A flag indicating the request originated from Cloudflare's rendering infrastructure |
37-
38-
:::note[Note]
39-
40-
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.
41-
42-
:::

0 commit comments

Comments
 (0)