---
title: "NUXT_E3001"
description: "useFetch request URL starts with \"//\"."
canonical_url: "https://nuxt.com/docs/4.x/errors/e3001"
---
# E3001

The URL passed to `useFetch()` starts with `//`. A protocol-relative URL like this resolves to an external host, which is almost never intended and is rejected to avoid leaking requests to a different origin.

## Resolution

Use an absolute URL with an explicit protocol, or a relative path:

```ts
useFetch('/api/data')
useFetch('https://api.example.com/data')
```

<read-more to="https://nuxt.com/docs/4.x/api/composables/use-fetch">



</read-more>


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
