candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.33k stars 370 forks source link

Feature Request : Work while embedded in iframe #478

Closed rblin081 closed 3 weeks ago

rblin081 commented 8 years ago

Currently while embedding in iframe there is a cross domain issue

Console logged

10:29:11.424 Error: Permission denied to access property "document"1 candy.min.js:3:3900

And I see this in Chrome's console: Uncaught SecurityError: Blocked a frame with origin "xxx" from accessing a frame with origin "xxx". Protocols, domains, and ports must match.(anonymous function) @ candy.bundle.js:5740(anonymous function) @ candy.bundle.js:5811