Skip to content

Commit 0c1cb28

Browse files
aschrinerljharb
authored andcommitted
[Docs] jsx-no-target-blank: Add section about overriding for trusted links
1 parent da2c7d2 commit 0c1cb28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/rules/jsx-no-target-blank.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ var Hello = <Link target="_blank" to="/absolute/path/in/the/host"></Link>
7474
var Hello = <Link />
7575
```
7676

77+
## When To Override It
78+
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.
79+
7780
## When Not To Use It
7881

79-
If you do not have any external links, you can disable this rule
82+
If you do not have any external links, you can disable this rule.

0 commit comments

Comments
 (0)