From 2fb69120ae64cf66f863b26413fe573c743b69fd Mon Sep 17 00:00:00 2001 From: Andy Schriner Date: Wed, 2 Oct 2019 16:00:02 -0700 Subject: [PATCH] [Docs] `jsx-no-target-blank`: Add section about overriding for trusted links --- docs/rules/jsx-no-target-blank.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/rules/jsx-no-target-blank.md b/docs/rules/jsx-no-target-blank.md index a8bee1ac72..41211eb1c0 100644 --- a/docs/rules/jsx-no-target-blank.md +++ b/docs/rules/jsx-no-target-blank.md @@ -74,6 +74,9 @@ var Hello = var Hello = ``` +## When To Override It +For links to a trusted host (e.g. internal links to your own site, or links to a another host you control, where you can be certain this security vulnerability does not exist), you may want to keep the HTTP Referer header for analytics purposes. + ## When Not To Use It -If you do not have any external links, you can disable this rule +If you do not have any external links, you can disable this rule.