Rafflecopter embed help


(Molly) #1

Hey there, my site does giveaways every month and rafflecopter is a really great tool to help run theme easier. I’d love to use it in our Discourse forum but when I embed it all I get is:

a Rafflecopter giveaway

The embed code is:

<a id="rc-42b095d24" class="rafl" href="http://www.rafflecopter.com/rafl/display/42b095d24/" rel="nofollow">a Rafflecopter giveaway</a>

Is it possible to make this work? If not, that’s fine. I ask out of general lack of knowledge and understanding.


(Jens Maier) #2

No, embedding these raffles would require custom support for Rafflecopter in the Onebox gem.

The full embed code you were given by Rafflecopter relies on a bit of JavaScript that gets embedded as a <script> tag. This isn’t possible in Discourse, because allowing this in a public forum would be an enourmous XSS vulnerability.


(system) #3