- Courses
- HTML
- HTML top level tags
- <link>
- Referrerpolicy's role in fetching
How does the referrerpolicy
attribute influence resource fetching in the <link>
element?
The referrerpolicy
attribute controls the referrer information sent when fetching resources.
The referrerpolicy
attribute in the <link>
element specifies how much referrer information should be included with requests for the linked resource. This can affect privacy and security by limiting the amount of information shared with the destination server, such as the full URL, only the origin, or no referrer at all.
<link rel="stylesheet" href="style.css" referrerpolicy="no-referrer" />