Testing embedding on a different domain

Can I embed a script with the block editor? It seems like it won’t work.

<div id=’discourse-comments’></div> <script type=”text/javascript”>DiscourseEmbed = { discourseUrl:’https://demo.scossar.com/’,discourseEmbedUrl: ‘REPLACE_ME’ };(function() {var d = document.createElement(‘script’); d.type =’text/javascript’; d.async = true;d.src = DiscourseEmbed.discourseUrl +’javascripts/embed.js’;(document.getElementsByTagName(‘head’)[0] ||document.getElementsByTagName(‘body’)[0]).appendChild(d); })(); </script>