Skip to main content

CookieBot not working on security hardend website (concerning Content Security Policy)

Comments

7 comments

  • Michael

    Hi,

    I've the same problem.

    Do you find a solution to make it work ?

    Thanks for your feedback :)

    0
  • Hugo Wood

    Hello,

     

    We have this problem too. Any luck with a solution?

    0
  • Michael

    Hi, you need to edit the HTACESS FILE.

    You need to add this :

    Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' *.cookiebot.com *.googletagmanager.com *.googleapis.com *.stripe.com *.google-analytics.com *.typekit.net *.wp.com *.facebook.com *.facebook.net *.instagram.com *.twitter.com *.pinterest.com *.linkedin.com; media-src 'self' blob:; base-uri 'self';"

    Hope it help :)

    I never have good feedback from the Cookies Bot team :(

    I found the solution by my own ...

     

    0
  • Hugo Wood

    Thanks for your response. We ended up using 'unsafe-inline' 'unsafe-eval' too but it lessens the security benefits of CSP quite a bit. :(

    0
  • Martin Byrne

    We have the same issue - and a client is saying they may have to abandon Cookiebot if it can't be resolved.  Hopefully we'll find a way around using unsafe-eval.

    0
  • piyush khullar

    Any solution for it?
    this is happening in customized cookie banner also. showbanner function call is using eval(). 

    0
  • Sebbe Selvig

    I have a similar problem. I added nonce-* to restrict inline scripts, but the nonce value is not cloned correctly when cookiebot script is loading additional resources.

    This SO question has info about it: https://stackoverflow.com/questions/55670985/google-chrome-stripping-nonce-values-from-script-tags

    0

Please sign in to leave a comment.