Cross Origin setup for WebSockets

28 views
Skip to first unread message

Vikas Iyengar

unread,
Aug 27, 2014, 9:54:42 AM8/27/14
to tot...@googlegroups.com
I have been trying to access a WebSocket created in total.js via a different domain/IP origin. What settings is required to make this work.
Please, suggest.

Peter Širka

unread,
Aug 27, 2014, 10:01:07 AM8/27/14
to tot...@googlegroups.com
Hi Vikas,

framework.websocket('/', some_action_for_websocket, { allow: ['*'] });

or add all allowed domain into the allow list.
Thanks + give me a feedback.

Reply all
Reply to author
Forward
0 new messages