I have looked up most of the topics and videos regarding embedding discourse topics on a separate website and have been running into issues with this on a Wix website. All I get is an error saying : Refusal to connect
On the embedding page I have gone through and added the allowed Hosts for the website. I have the category selected and everything appears to be good.
I replaced the EMBED_URL with the URL of the page to embedding on.
I replaced the DISCOURSE_USERNAME with my Discourse username for creating the topic.
I pasted the entire HTML code into the HTML iFrame on my website. Yet it just doesnât seem to work for some reason. No sure where I am going wrong.
Any idea on what I can do to fix this?
I saw one person mention JSON or RSS in a different topic but I have no clue how to go about the process. Has anyone successfully added a Discourse embed onto a separate website?
iâm not certain, but i donât think you can embed Discourse content into an iframe.
my site uses the embed on our Discourse forum as the engine for the comments section of our parent site at the bottom of articles and it works quite well for us that way.
thatâs because you have a code error and you are trying to return two expressions when only one is allowed somewhere. post your code and let us have a look.
you shouldnât have to fragment it and that code should work as long as you have the EMBED_URL and DISCOURSE_USERNAME correct. maybe check over your allowed host paths and categories configuration again. i donât know anything about Velo by Wix.
I would absolutely love to know how to get this to work. I mean, even without the commenting ability but to just connect each page to the forum would be awesome!
yep thatâs our site thanks. iâm the admin of the Discourse forum, but not the site itâs embedding to.
yea i donât see any error in your code so i wonder if itâs the wix site. it may be the other settings like allowed hosts and paths with wix. hopefully they can give you some assitance from their end or someone here may recognize your issue and be able to help. at the moment, i am not seeing why it isnât working for you.
Yeah, I read through the Embed instruction. I also called the Wix support like 4 times. They directed me to their expert team but was sent to voicemail b/c they were too busy. Then, I got an email a few days ago.
Iâll likely respond to that email with additional details about the request.
I think youâre right on that w/ the iFrame. I followed the instructions from the Admin>Custom>Embedding page. Attempted to alter & update it in every possible way I could think of.
iFrame is likely the root of the problem since itâs a javascript. I did notice that link you last sent has a section called âCustom Elementâ below the HTML & Embed a Site. Which I believe thatâs probably whatâs holding it up.
All good, Iâll post back on here what I hear from the Wix support.
Iâm guessing this is mainly just an issue among their website compared to something like Word Press. Seems like a common issue other Wix users have run into over the years without a clear solution.