Skip to content

Commit 77d95db

Browse files
authored
[ai-gateway] clarify authentication behavior for Worker bindings (#23474)
Requests made via Cloudflare Worker bindings are pre-authenticated and do not require manual inclusion of the cf-aig-authorization header. This note helps clarify internal vs external request behavior when using Authenticated Gateway.
1 parent eb09a4a commit 77d95db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/content/docs/ai-gateway/configuration/authentication.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ const openai = createOpenAI({
6161

6262
## Expected behavior
6363

64+
:::note
65+
When an AI Gateway is accessed from a Cloudflare Worker using a **binding**, the `cf-aig-authorization` header does not need to be manually included.
66+
Requests made through bindings are **pre-authenticated** within the associated Cloudflare account.
67+
:::
68+
6469
The following table outlines gateway behavior based on the authentication settings and header status:
6570

6671
| Authentication Setting | Header Info | Gateway State | Response |

0 commit comments

Comments
 (0)