-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Hi,
I've been reading the discussion surrounding noopener / noreferrer, including what was done in #2043.
However, I still find the behaviour strange.
Here is my link:
<a href="https://some-external-link.com" target="_blank" rel="noopener">Link</a>
I'm getting a warning:
Using target="_blank" without rel="noreferrer" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener react/jsx-no-target-blank
The html spec link redirects me to noopener
documentation, and yet it is still requiring me to add noreferrer
. As far as I understand, the use or noreferrer
or noopener
removes the security risk, so the rule should not be triggered if one of them is present (no matter which). In this case, since I'm using noopener
(thus removing the security risk), the warning should not be shown, imho.
Why don't I use noreferrer
? I think it's important for websites to know where their traffic is coming from, so I don't intend on hiding the referrer, and I don't think you should either. The referrer information helps bloggers and independent content creators properly monitor the traffic arriving to their websites.