HTML <link> 참조자 정책 속성

❮ HTML <iframe> 태그

예시

외부 스타일 시트에 대한 요청과 함께 참조자 정보가 전송되지 않도록 지정합니다.

<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css" referrerpolicy="no-referrer">


정의 및 사용

속성 은 referrerpolicy리소스를 가져올 때 사용할 리퍼러 정보를 지정합니다.


브라우저 지원

표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.

Attribute
referrerpolicy 51.0 79.0 50.0 11.1 38.0


통사론

<link referrerpolicy="no-referrer|no-referrer-when-downgrade|origin|origin-when-cross-origin|unsafe-url">

속성 값

Value Description
no-referrer No referrer information will be sent along with a request
no-referrer-when-downgrade Default. The referrer header will not be sent to origins without HTTPS
origin Send only scheme, host, and port to the request client
origin-when-cross-origin For cross-origin requests: Send only scheme, host, and port. For same-origin requests: Also include the path
unsafe-url Send origin, path and query string (but not fragment, password, or username). This value is considered unsafe

❮ HTML <iframe> 태그