This product is not supported for your selected Datadog site. ().
이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다. 현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.
Metadata
ID:jsx-react/jsx-no-target-blank
Language: JavaScript
Severity: Warning
Category: Security
Description
Using target="_blank" in an anchor (<a>) tag allows a link to be opened in a new browser tab or window.
A malicious website opened through target="_blank" can change the window.opener.location to a phishing page, potentially misleading users.
This rule enforces using rel="noreferrer" with on links that have the target="_blank" attribute. It might not be needed if you target modern browsers, but is still recommended to follow it as a best practice.
Known Limitations
This rule does not support custom link components without an href, target and rel properties.