The discussion revolves around integrating a payment provider, SteadyHQ, into a Discourse site, which is being blocked by the site’s Content Security Policy (CSP). Krischan has tried whitelisting domains but still encounters an error. RGJ suggests the issue may not be CSP-related, but Krischan confirms that disabling CSP resolves the issue. Johani proposes a solution, suggesting that the script uses eval(), which is blocked by default, and recommends adding 'unsafe-eval' to the CSP settings to allow the script to work.
We’re currently trying to integrate the payment provider Steady – Du machst Medien. Wir den Rest. into our discourse site. Unfortunately, I don’t get their javascript code past our content security policy. I whitelisted every domain I could find in the code, but still get this in the developer console:
Everything works as expected, when I deactivate the content security policy, so this was the best guess I could come up with. Thanks for the hint! Do you have a tip on how to solve this?