How to fix CSP issues with facebook messenger-checkbox
问题 I'm trying to make facebook messenger checkbox work, I've added the following code to my html window.fbAsyncInit = function() { FB.init({ appId: "{{ fb_app_id }}", xfbml: true, version: "v2.6" }); FB.Event.subscribe('messenger_checkbox', function(e) { console.log("messenger_checkbox event"); console.log(e); if (e.event == 'rendered') { console.log("Plugin was rendered"); } else if (e.event == 'checkbox') { var checkboxState = e.state; console.log("Checkbox state: " + checkboxState); } else if