I signed up for the 14 day trial to see if Discourse can do what we’re trying to achieve. Basically we want to be able to embed topics in to specific pages and have them operate in a similar manner to a comments section.
The problem I am having is when I embed a topic in a page it prompts me to login to the forums. When I click login, I get the following errors in the console:
-
Blocked autofocusing on a element in a cross-origin subframe.
-
DOMException: The ‘publickey-credentials-get’ feature is not enabled in this document. Permissions Policy may be used to delegate Web Authentication capabilities to cross-origin child frames.
I have added the domain to the allowed hosts and the embed code is listed below.
<div id='discourse-comments'></div>
<script type="text/javascript">
window.DiscourseEmbed = {
discourseUrl: 'https://forumname.discourse.group/',
topicId: 5
};
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = window.DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
Would somebody be able to kindly point me in the right direction of what I may need to be changing to get this working?
Thanks in advance!