Hello all, I’m trying to use https://forum.neverlocal.com as the comments section of https://blog.neverlocal.com which is our company jekyll blog. We are using the hosted version of Discourse.
Discourse embedding is configured as follows:
Allowed hosts: blog.neverlocal.com
Path allowlist: */
Post to category: Blog
Post author: system
Embedding code is:
<div id='discourse-comments' style="display: none"></div>
<meta name='discourse-username' content='system'>
<script type="text/javascript">
DiscourseEmbed = {
discourseUrl: 'https://forum.neverlocal.com/',
discourseEmbedUrl: '{{site.url}}{{page.url}}',
// className: 'share-box',
};
(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>
Atm we’re not displaying the iframe for debugging reasons, which is why it’s styled as display: none
.
Unfortunately I hit the following error:
Referer:https://blog.neverlocal.com/xxx
The referer was either not sent, or did not match any of the following hosts:
blog.neverlocal.com.*
Also, no posts are created on our forum.
BTW, you can check all this yourself by going on the blog, open any post, and inspecting the situation with developer tools. I’m a bit at a loss and I don’t know what to do, I’ve scouted the forum but no solution seems to work.
Any help would be greatly appreciated!
Fab