# Request: referrer property



The **`referrer`** read-only property of the
[Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) interface is set by the user agent to be the referrer of the
Request. (e.g., `client`, `no-referrer`, or a URL.)

> **NOTE:**
> If `referrer`'s value is `no-referrer`,
> it returns an empty string.

## Value

A string representing the request's referrer.

## Examples

In the following snippet, we create a new request using the
[Request()](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request) constructor (for an image file in the same directory as
the script), then save the request referrer in a variable:

```js
const myRequest = new Request("flowers.jpg");
const myReferrer = myRequest.referrer; // returns "about:client" by default
```

## Specifications

## Browser compatibility

## See also

- [ServiceWorker API](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API)
- [HTTP access control (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS)
- [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP)
