• samlinck

    (@samlinck)


    From time to time the cookie pro script gets blocked again and this error message is shown:
    Failed to find a valid digest in the ‘integrity’ attribute for resource.

    When I look into the external scripts, the script is whitelisted. After rehashing the script starts working again. This is one part of the problem.

    When the script starts working again, some actions of the script get blocked and an error in the plugin script gets shown:
    no-unsafe-inline-fix-style.min.js?ver=1.1.2:2 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘toUpperCase’)
    at no-unsafe-inline-fix-style.min.js?ver=1.1.2:2:524


    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Giuseppe

    (@mociofiletto)

    Hi @samlinck,

    It seems that the script is served by a cdn and is there a possibility they serve it in different flavours. If this is the case, I could add it, in scripts that do not support SRI:

    https://github.com/MocioF/No-unsafe-inline/blob/e66be55cd7475f1ea2842441f1f68fb94cde6109/src/Nunil_Manipulate_DOM.php#L959

    Can you make some tests or say if this happens with different browsers or O.S. ?

    Thread Starter samlinck

    (@samlinck)

    Hi Giuseppe,

    I turned off SRI for <script> and now the cookie script doesn’t get blocked anymore. So part one of the problem is fixed ?? Concerning part two of the problem, the js error i shared. I tested in all the browser on my machine, these are the results:
    – Chrome: error
    – Edge: error
    – Opera: don’t always have the error
    – Safari: don’t always have the error
    – Firefox: rarely have the error

    The error is shown when I’m trying to “accept all cookies” on the banner shown the first time you visit the site.

    Plugin Author Giuseppe

    (@mociofiletto)

    Hi @samlinck

    I will soon release a new version adding cookie pro in the list of script that do not support SRI.

    I am trying to fix the other error, but I have found some difficulties in reproducing it. However, I have seen it a couple of times in Chrome, so I am sure there is something to fix. Today I am not able to reproduce it. Did you make some changes (and which ones)?

    Plugin Author Giuseppe

    (@mociofiletto)

    please, can you check if the last version works in your pages with SRI enabled?

    Thread Starter samlinck

    (@samlinck)

    Hi @mociofiletto, SRI seems to work now! But I still have the js error from time to time. When I want close or accept cookies:

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