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

Use rel=noopener for _blank anchors #7914

Merged
merged 1 commit into from
Feb 18, 2019
Merged

Use rel=noopener for _blank anchors #7914

merged 1 commit into from
Feb 18, 2019

Conversation

mike-marcacci
Copy link
Contributor

Using lighthouse to audit our site, we kept getting marked down for "unsafe" cross-origin links. This PR adds rel="noopener" to both hard-coded links.

However, I did notice that the attribution links are not constructed on the client side but injected directly using innerHTML. I think this is a separate issue (which I'll open momentarily), so this PR is an incomplete fix for the lighthouse recommendation.

Copy link
Contributor

@ryanhamley ryanhamley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ryanhamley ryanhamley merged commit c58b24c into mapbox:master Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants