Discourse Embedding


(Wraithseekerr) #1

I have followed the official instructions for embedding Discourse comments via javascript but I am having a weird issue.

I am getting stuck at the continuing discussion part in the iframe and that my javascript console is throwing this error.

Refused to display ‘myforumembedURL’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’.

EDIT: Installing this plugin GitHub - TheBunyip/discourse-allow-same-origin fixed the above issue but a new problem arrives

Uncaught TypeError: Cannot read property 'forEach' of undefined
application-cd9745fc880544c7c2b725a9c0999a09.js:9 Uncaught TypeError: Cannot read property 'highlighted_languages' of undefined
mydomainembedURL. Failed to load resource: the server responded with a status of 403 ()

(Dean Peterson) #2

I am running into the same error. I get past the same origin issue only to get a 403 error. Did you ever figure this out?