Closed saaiful closed 3 years ago
WS by default is disabled which you need to enable by enabling the appropriate enableWSEvents
flag in config.
enableWSEvents = true It works now.
how are you dealing with CROS on XML requests?
What do you mean by CORS on XML requests? tinyphone supports cors by responding to OPTIONS request and corresponding headers, so any cors requests should go though.
Are you facing any specific issue?
What do you mean by CORS on XML requests? tinyphone supports cors by responding to OPTIONS request and corresponding headers, so any cors requests should go though.
Are you facing any specific issue?
Sorry, not XML , XHR
XHR Requests should go fine. Did you face any issue?
Access to XMLHttpRequest at 'localhost:6060/accounts' from origin 'http://localhost' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, edge, https, chrome-untrusted.
looks like i was missing http :( Thank again for helping out.
jquery.simple.websocket.js:99 WebSocket connection to 'ws://127.0.0.1:6060/events' failed:
var webSocket = $.simpleWebSocket({ url: 'ws://127.0.0.1:6060/events' });
WebSocket Example is not present.