Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add noopener along with _target blank for security #7

Closed
wants to merge 1 commit into from
Closed

Add noopener along with _target blank for security #7

wants to merge 1 commit into from

Conversation

buren
Copy link
Contributor

@buren buren commented Jun 21, 2018

This is for security reasons. Without it, if a user clicks an external link the target page will have full access to the window object!

To fix this we add rel="noopener noreferrer" along with _target="blank". noreferrer is for older browsers that does not support noopener.

For more information see https://mathiasbynens.github.io/rel-noopener/

@keithmifsud
Copy link
Owner

keithmifsud commented Jun 21, 2018

@buren

Thank you so much for your contribution. I just had to jump in to thank you. I'm working on something atm and will review this PR during the coming weekend :)

This was in the pipeline for v1.1 as per #GH-3 so please also allow some time for other new features to be completed which may be released at once.

Again, thank you for your contribution. I promise you to look into the PR in the next few days! You're a ⭐️

@buren
Copy link
Contributor Author

buren commented Jun 21, 2018

Cool!
Don't forget to add rel="noopener noreferrer" as default :)

@buren buren changed the title Add noopener along with _blank target for security Add noopener along with _target blank for security Jun 21, 2018
This is for security reasons. Without it if a user clicks an external
link the target page will have full access to the `window` object!

To fix this we add `rel="noopener noreferrer"` along with
`_target="blank"`. `noreferrer` is for older browsers that does not
support `noopener`.

For more information see https://mathiasbynens.github.io/rel-noopener/
@keithmifsud
Copy link
Owner

@buren Thank you for this PR. It all great :) Can you please edit the PR and ask to merge it to this branch: pre-release-v1.1 . I will merge into master after a couple of additions from separate issues.

@keithmifsud keithmifsud moved this from To do to In progress in Release version 1.1 Jun 24, 2018
@buren
Copy link
Contributor Author

buren commented Jun 24, 2018

Reopened this PR against the pre-release branch as noted in #11.

Closing this in favour of #12.

@buren buren closed this Jun 24, 2018
Release version 1.1 automation moved this from In progress to Done Jun 24, 2018
@keithmifsud keithmifsud moved this from Done to Cancelled in Release version 1.1 Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants