Skip to content

Commit

Permalink
docs: useFetch uses isomorphic $fetch (nuxt#5769)
Browse files Browse the repository at this point in the history
  • Loading branch information
mod7ex authored Jul 7, 2022
1 parent f321a56 commit c88e171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/2.guide/2.features/5.data-fetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ When we call `fetch` in the browser, user headers like `cookie` will be directly

We can use [`useRequestHeaders`](/api/composables/use-request-headers) to access and proxy cookies to the API from server-side.

The example below adds the request headers to an isomorphic `fetch` call to ensure that the API endpoint has access to the same `cookie` header originally sent by the user.
The example below adds the request headers to an isomorphic `$fetch` call to ensure that the API endpoint has access to the same `cookie` header originally sent by the user.

```vue
<script setup>
Expand Down

0 comments on commit c88e171

Please sign in to comment.