Skip to content

Commit bfa4fe1

Browse files
authored
Added note on behavior of custom headers in HAR files
Custom headers wont show up in a HAR file, this can cause confusion since it appears the header isnt being injected. Added clarification on this and how to test if the header is being injected.
1 parent f8e1cc9 commit bfa4fe1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/content/docs/cloudflare-one/policies/gateway/http-policies/tenant-control.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ With Gateway tenant control, you can allow your users access to corporate SaaS a
99

1010
When creating an HTTP policy with an Allow action, you will have the option to configure custom headers. Gateway can use custom headers to control SaaS application access. If a user's HTTP request is headed to your organization's account for the SaaS application, Gateway will approve the request. If the request does not match the information in the header, Gateway will block the request.
1111

12+
## Note
13+
14+
Customer headers will not appear in a HAR file taken from your browser. This is due to the header being injected by Gateway after the request leaves your browser. To verify if a custom header is being applied, temporarily add a selector for *Domain > In > httpbin.org* to your Gateway rule, once saved go to [`httpbin.org/anything`](https://httpbin.org/anything) and verify the custom header is shown.
15+
1216
## Add custom headers for a SaaS application
1317

1418
To create an HTTP policy with custom headers:
@@ -136,3 +140,4 @@ To use custom headers with Browser Isolation, create two HTTP policies targeting
136140
| `Example-Header` | `example-value` |
137141

138142
3. Go to [`httpbin.org/anything`](https://httpbin.org/anything). Cloudflare will render the site in an isolated browser. Your custom header will appear in the list of headers.
143+

0 commit comments

Comments
 (0)