STT-examples icon indicating copy to clipboard operation
STT-examples copied to clipboard

Feature request: make web_microphone_websocket work outside localhost

Open comodoro opened this issue 2 years ago • 3 comments

The web_microphone_websocket example works for localhost, but on a domain there were CORS errors from the socket.io code, e.g. Chrome:

Access to XMLHttpRequest at 'https://example.com:4000/socket.io/?EIO=3&transport=polling&t=Nu-iT4E' from origin 'https://example.com.cz:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Several recipes from SO and the socket.io docs did not work, perhaps someone with better JS knowledge might help.

comodoro avatar Jan 09 '22 12:01 comodoro