docs: useFetch uses isomorphic $fetch (#5769)

This commit is contained in:
Mourad EL CADI 2022-07-07 18:03:46 +01:00 committed by GitHub
parent f321a56e63
commit c88e1716ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. 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 ```vue
<script setup> <script setup>