[Support request] Updated to Latest GP Version- Caused many New errors in Lighthouse

Home Forums Support [Support request] Updated to Latest GP Version- Caused many New errors in Lighthouse

Home Forums Support Updated to Latest GP Version- Caused many New errors in Lighthouse

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2042419
    Melissa

    I updated GeneratePress this morning to the latest version, and now I am receiving several different errors that I wasn’t getting before.

    Description
    
    script-src directive is missing. This can allow the execution of unsafe scripts.
    script-src
    
    Missing object-src allows the injection of plugins that execute unsafe scripts. Consider setting object-src to 'none' if you can.
    object-src

    and

    Charset declaration is missing or occurs too late in the HTML

    How do I remedy these issues?

    #2042589
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to your site where we can see the problems as updating GP shouldn’t have caused that.

    #2042598
    Melissa

    Yes Sir, thank you, I’ve added the link in the private info area.

    #2042709
    David
    Staff
    Customer Support

    Ok so:

    1.script-src Can you disable WP Rocket and Autoptimize and retest the site, if it still raises an issue temporarily disable any adverts as there are multiple 3rd party scripts that could be causing this.

    2. this: Charset declaration is missing or occurs too late in the HTML – see here:

    2021-12-08_16-28-59

    WP Rocket is injecting its lazy loading scripts before the charset meta tag ( highlighted in green ). Which looks to be the issue – if i disable WP Rocket by adding ?nowprocket to the URL when running the lighthouse test that warning is not reported,

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.