Skip to content

Commit 7b04181

Browse files
Update headers.md to clarify that Set-Cookie is automatically preserved (#12701)
1 parent 3d40930 commit 7b04181

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/how-to/headers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export function headers({
5858
}
5959
```
6060

61+
One notable exception is `Set-Cookie` headers, which are automatically preserved from `headers`, `loader`, and `action` in parent routes, even without exporting `headers` from the child route.
62+
6163
## Merging with parent headers
6264

6365
Consider these nested routes

0 commit comments

Comments
 (0)