inline js script tag wordt niet geladen vanwege csp en ik weet niet hoe ik het moet oplossen.
AI-generated summary
TheNab is encountering issues with a script tag not loading in a landing pages plugin due to the content-security-policy (CSP). awesomerobot provided a link to a Discourse meta post detailing CSP and third-party integrations, suggesting checking browser console for script sources and adding them to the content_security_policy_script_src setting. TheNab stated theyâve reviewed related posts but struggles to implement the exception. awesomerobot asked about browser console errors and provided an example image of a CSP error related to inline script execution, suggesting adding the sha256-xxxxx hash to the site setting. TheNab reported receiving a nonce-s0m3h4sh error in Firefox, but a sha256-s0m3h4sh error in Chrome, implying the hash value differs by browser.
Thereâs some information in this post that may help: Mitigate XSS Attacks with Content Security Policy
Ik heb dat en andere gelezen, maar kan niet achterhalen hoe ik de uitzondering daadwerkelijk moet toevoegen aan de content_security_policy_script_src.
Do you see an error concerning the script in your browser console? something like this?
Youâll want to add that provided hash ('sha256-xxxxx') to the âcontent security policy script srcâ setting found in admin > all site settings
De fout die ik kreeg had nonce-s0m3h4sh in de Firefox-browser, ik kreeg de sha256-s0m3h4sh niet. Maar toen ik het net in Chrome bekeek, was het de sha256-versie. Ik vermoed dat dat de oorzaak was van de meeste verwarring.
