Evren_Yilmaz1 is seeking help to integrate external JavaScript from an affiliate network into their self-hosted Discourse instance for use in house ads. The script works in a standalone HTML environment but fails to execute in Discourse, despite being added to the content security policy. Lhc_fl suggests checking the content security policy, and Evren confirms it’s been set up but notes that the script parameters are not being processed correctly, with an error occurring. The user provides a code snippet and a screenshot of their Discourse settings, indicating the issue may be related to script execution or parameter handling within Discourse’s environment.
Yes I did, I added the 2 scripts in security policy - but the part with parameters seems not work.
Here is the code when it is standalone in a “hello world envoirment”
I dont have security Issues if my partnernumber are visible. Dont worry.
But be careful there are erotic ads if you try it nsfw.