diff --git a/docs/content/1.get-started/3.tips/5.headers.md b/docs/content/1.get-started/3.tips/2.headers.md similarity index 100% rename from docs/content/1.get-started/3.tips/5.headers.md rename to docs/content/1.get-started/3.tips/2.headers.md diff --git a/docs/content/1.get-started/3.tips/4.authorization.md b/docs/content/1.get-started/3.tips/3.authorization.md similarity index 93% rename from docs/content/1.get-started/3.tips/4.authorization.md rename to docs/content/1.get-started/3.tips/3.authorization.md index 1e884ee..9bfdcee 100644 --- a/docs/content/1.get-started/3.tips/4.authorization.md +++ b/docs/content/1.get-started/3.tips/3.authorization.md @@ -6,6 +6,10 @@ title: Authorization The `createContext` function is called for each incoming request so here you can add contextual information about the calling user from the request object. +::alert{type="info"} +Before you can access request headers in any context or middleware, you need to set the outgoing request headers. See [here](/get-started/tips/headers). +:: + ## Create context from request headers ```ts [server/trpc/context.ts] diff --git a/docs/content/1.get-started/3.tips/2.server-side-calls.md b/docs/content/1.get-started/3.tips/4.server-side-calls.md similarity index 100% rename from docs/content/1.get-started/3.tips/2.server-side-calls.md rename to docs/content/1.get-started/3.tips/4.server-side-calls.md diff --git a/docs/content/1.get-started/3.tips/3.aborting-procedures.md b/docs/content/1.get-started/3.tips/5.aborting-procedures.md similarity index 100% rename from docs/content/1.get-started/3.tips/3.aborting-procedures.md rename to docs/content/1.get-started/3.tips/5.aborting-procedures.md