candy-chat / candy

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

Feature Request : Work while embedded in iframe #478

Open rblin081 opened 8 years 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