0
0

More than 1 year has passed since last update.

rel="noopener"

Posted at

rel="noopener"とは?

一種のセキュリティ対策で、target="_blank"で開いたページに仕込んである悪意のあるコードから元のページを守ることができる。
rel="noopener"を使用しなければ、遷移先にwindow.opener.location = "hogehoge.com"とあれば、遷移してきた元のページがhogehoge.comに置き換わってしまう可能性があり、フィッシング詐欺に遭う可能性が出てくる。

<a href="https://google.com" target="_blank" rel="noopener">Google</a>

参照

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0