0

I got this warning on terminal when I was developing a react app. What does it mean? what risks should I expect?

code

Go to <a target="_blank" href="http://facebook.com"> Facebook</a>

Warning

Line 11:21:  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

I had to add the specification but I don't know why it important.

Go to <a target="_blank"  rel="noreferrer" href="http://facebook.com"> Facebook</a>
Drew Reese
  • 165,259
  • 14
  • 153
  • 181
BiniTutor
  • 91
  • 1
  • 4

0 Answers0