Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38269
    thinegen
    Participant

    Hey guys,

    Great plugin! However, it looks like it is breaking my cloudflare site:

    After looking through the source, i think the plugin inserts blocked code via js after accepting, and via php on further site visits. This creates a problem: if you cache html pages in cloudflare, the blocked code from the plugin might still be displayed.
    Could you create an option to select wether to unblock code via js or php?

    Thank you!

    #38270
    thinegen
    Participant

    I guess it could look something like this?

    
    if(cn_cookies_accepted()) {
      var script = document.createElement("script")
      script.innerHTML = refuse_code; // probably escaping necessary
      document.getElementsByTagName("head")[0].appendChild(script);
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.