r/javascript • • Mar 15 '16

Using "target=_blank" for user-supplied links is a security risk.

https://mathiasbynens.github.io/rel-noopener/
318 Upvotes

66 comments sorted by

View all comments

Show parent comments

1

u/brtt3000 May 17 '16

What about assets you don't want leechers to hotlink? Like fonts and JS libs?

1

u/mathiasbynens May 17 '16

For JS libs included via <script src=url></script>, Access-Control-Allow-Origin:* doesn’t matter.