Angular can’t access Springboot through Websockets
I’m having a porject, where Springboot is hosting the Angular frontend. The backend is receiving data from a external MQTT-Broker and is supposed to broadcast specific messages that it receives to an internal Broker (I’m using SimpMessagingTemplate for that) that the Angular frontend subscribes to (using RxStompService). In my IDE locally everything works fine, but on the machine I get the error “WebSocket connection to ‘ws://localhost:8080/live’ failed:”. Below is part of my WebSocketConfig, since the obvious problem could be that I setup AllowedOrigins wrong: