Hello everybody,
I'd like to connect my custom Vuejs client with a websocket. Unfortunately this doesn't work. I have enabled CORS support in the API section.
It doesn't work with socket.io-client nor with sockjs even though it works with some websocket clients like Simple WebSocket Client
.
Here are some error messages:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/sockjs-node/info?t=1575366607181. (Reason: CORS request did not succeed).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.178.30:8080/sockjs-node/info?t=1575366609441. (Reason: CORS request did not succeed).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/sockjs-node/info?t=1575366612157. (Reason: CORS request did not succeed).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/sockjs-node/info?t=1575366793056. (Reason: CORS request did not succeed).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/sockjs-node/info?t=1575367310669. (Reason: CORS request did not succeed).
How can I fix this aside from doing periodical request with the API?
Thank you in advance.