Embed discourse top 3 topics in Chrome Extension popup


(Walter Sobchak) #1

I tried to embed a disqus forum in my Chrome extension but they prevent embedding from a different domain (none in this case, as its an extension) than the forum is registered with. Does disourse allow such embedding?


(Jeff Atwood) #2

No, Discourse does not support embedding in this manner.


(Walter Sobchak) #3

Thanks Jeff. Hmmm is this limitation easy to remove in my own branch of the software?


(Jeff Atwood) #4

Why not simply embed the RSS via a RSS reader, or write a quick set of API calls that return the necessary topics.


(Kane York) #5

Because your code is a chrome extension, that means it can ignore cross-origin restrictions, and this is a trivial task to perform. Just request /top.json.