• Resolved vernian

    (@vernian)


    Lighthouse shows:
    Links to cross-origin destinations are unsafe
    Add rel="noopener" or rel="noreferrer" to any external links to improve performance and prevent security vulnerabilities. Learn more.

    /?utm_source=WordPress&utm_medium=link&utm_campaign=inthewild(socialsnap.com)

    How can I add noreferrer your plugins link? thanks you for your interest.

Viewing 1 replies (of 1 total)
  • Plugin Author Social Snap

    (@socialsnap)

    Hi,

    Thank you for pointing this out.

    I wouldn’t call this a security issue, because the link goes to our website and not an unknown URL. Still, you are absolutely right that “noopener” should be added. Here’s how you can do that:

    Add the following PHP code at the bottom of your theme function.php file (or even better in your child theme’s function.php file):

    function socialsnap_new_signature() {
    	return '<div class="ss-powered-by">Powered by <a href="https://socialsnap.com/?utm_source=WordPress&utm_medium=link&utm_campaign=inthewild" target="_blank" rel="nofollow noopener"><i class="ss ss-socialsnap"></i>Social Snap</a></div><!-- END .ss-powered-by -->';
    }
    add_filter( 'socialsnap_signature', 'socialsnap_new_signature' );

    Please note that this change will be included with our next plugin update.

    Let me know if you have any other questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Google Lighthouse Security Problem’ is closed to new replies.