sdelements / lets-chat

Self-hosted chat app for small teams
http://sdelements.github.io/lets-chat
MIT License
9.77k stars 1.59k forks source link

Embed chat widget on a web page #495

Closed openstepmedia closed 8 years ago

openstepmedia commented 9 years ago

Is there a way to embed lets-chat into a website - take a look at : spot.im

Even just iframe it?

AndyMeusel commented 9 years ago

I have done this successfully with an iframe by adding

app.use(function(req,res,next) {

res.setHeader('X-Frame-Options','ALLOW-FROM <your FGDN HERE>');

next();

});

to app.js

and then altering document.domain to remove the port number

https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy

On Wed, 10 Jun 2015 19:01 Seth Markowitz notifications@github.com wrote:

Is there a way to embed lets-chat into a website - take a look at : spot.im

Even just iframe it?

— Reply to this email directly or view it on GitHub https://github.com/sdelements/lets-chat/issues/495.