Skip to content

Commit 46faacf

Browse files
authored
Apply suggestions from code review
1 parent e20fcad commit 46faacf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

documentation/docs/20-core-concepts/20-load.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ export async function load({ cookies }) {
276276
Cookies will only be passed through the provided `fetch` function if the target host is the same as the SvelteKit application or a more specific subdomain of it.
277277

278278
For example, if SvelteKit is serving my.domain.com:
279-
- domain.com WILL NOT receive cookies
280-
- my.domain.com WILL receive cookies
281-
- api.domain.dom WILL NOT receive cookies
279+
- domain.com WILL NOT receive cookies
280+
- my.domain.com WILL receive cookies
281+
- api.domain.dom WILL NOT receive cookies
282282
- sub.my.domain.com WILL receive cookies
283283

284284
Other cookies will not be passed when `credentials: 'include'` is set, because SvelteKit does not know which domain which cookie belongs to (the browser does not pass this information along), so it's not safe to forward any of them. Use the [handleFetch hook](hooks#server-hooks-handlefetch) to work around it.

0 commit comments

Comments
 (0)