referrerPolicy property
Contains the referrer policy of the request.
This property is read-only.
Syntax
JavaScript |
---|
refPolicy = object.referrerPolicy |
Property values
Type: DOMString
A DOMString that represents the request's referrerPolicy.
Standards information
Remarks
The possible values of referrerPolicy are defined in the ReferrerPolicy enumeration:
- ""
- "no-referrer"
- "no-referrer-when-downgrade"
- "origin"
- "origin-when-cross-origin"
- "unsafe-url"
The value of referrerPolicy is an empty string by default.