HTML <img> 리퍼러 정책 속성

❮ HTML <a> 태그

예시

이미지에 대한 참조 정책을 설정합니다.

<img src="https://example.com/images/myimage.jpg" alt="Some image" referrerpolicy="no-referrer">

정의 및 사용

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


브라우저 지원

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

Attribute
referrerpolicy 51.0 79.0 50.0 11.1 38.0

통사론

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

속성 값

Value Description
no-referrer No referrer information is sent
no-referrer-when-downgrade Default. The referrer header will not be sent to origins without HTTPS
origin Sends the origin (scheme, host, and port) of the document
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 <a> 태그