You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-target-blank.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ since: 'v0.0.4'
12
12
13
13
## :book: Rule Details
14
14
15
-
This rule disallows using `target="_blank"` attribute without `rel="noopener noreferrer"` to avoid a security vulnerability([see here for more details](https://mathiasbynens.github.io/rel-noopener/)).
15
+
This rule disallows using `target="_blank"` attribute without `rel="noopener noreferrer"` to avoid a security vulnerability in legacy browsers where a page can trigger a navigation in the opener regardless of origin ([see here for more details](https://mathiasbynens.github.io/rel-noopener/)).
16
16
17
17
<ESLintCodeBlock>
18
18
@@ -46,8 +46,8 @@ This rule disallows using `target="_blank"` attribute without `rel="noopener nor
46
46
}
47
47
```
48
48
49
-
-`allowReferrer` ... If `true`, does not require noreferrer.default `false`
50
-
-`enforceDynamicLinks ("always" | "never")` ... If `always`, enforces the rule if the href is a dynamic link. default `always`.
49
+
-`allowReferrer` ... If `true`, allows the `Referrer` header to be sent by not requiring `noreferrer` to be present. default `false`
50
+
-`enforceDynamicLinks ("always" | "never")` ... If `always`, enforces the rule if the href is a dynamic link. default `always`
0 commit comments