voiceip / tinyphone

Minimalist Windows / OSx / Linux SIP Softphone with API Control
GNU General Public License v3.0
117 stars 36 forks source link

WS Not working #38

Closed saaiful closed 3 years ago

saaiful commented 3 years ago

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.

kingster commented 3 years ago

WS by default is disabled which you need to enable by enabling the appropriate enableWSEvents flag in config.

saaiful commented 3 years ago

enableWSEvents = true It works now.

how are you dealing with CROS on XML requests?

kingster commented 3 years ago

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?

saaiful commented 3 years ago

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

kingster commented 3 years ago

XHR Requests should go fine. Did you face any issue?

saaiful commented 3 years ago

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.

saaiful commented 3 years ago

looks like i was missing http :( Thank again for helping out.