Hi, I tried that cookie consent code below but it didn’t work. I’ve copied its code to </ head > in customizing menu as it’s said. Anyone can tell me what did I wrong?
Thanks.
Code here:
https://cookieconsent.insites.com/download/
Also there is a video which shows it works:
tshenry
(Taylor)
2 Febbraio 2019, 1:21am
2
This is due to Content Security Policy. You will need to whitelist the script source per these instructions (particularly note this part ):
This guide explains how to use Content Security Policy (CSP) to mitigate Cross-Site Scripting (XSS) attacks in Discourse. It covers CSP basics, configuration, and best practices.
Required user level: Administrator
Summary
Content Security Policy (CSP) is a crucial security feature in Discourse that helps protect against Cross-Site Scripting (XSS) and other injection attacks. This guide covers the basics of CSP, how it’s implemented in Discourse, and how to c…
Thank you, it’s working now.