Skip to content

Commit

Permalink
[Docs] jsx-no-target-blank: Add section about overriding for truste…
Browse files Browse the repository at this point in the history
…d links
  • Loading branch information
aschriner committed Oct 11, 2019
1 parent 6f14e16 commit 2fb6912
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/rules/jsx-no-target-blank.md
Expand Up @@ -74,6 +74,9 @@ var Hello = <Link target="_blank" to="/absolute/path/in/the/host"></Link>
var Hello = <Link />
```

## 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.

0 comments on commit 2fb6912

Please sign in to comment.