spring-guides / gs-messaging-stomp-websocket

Using WebSocket to build an interactive web application :: Learn how to the send and receive messages between a browser and the server over a WebSocket
http://spring.io/guides/gs/messaging-stomp-websocket/
Apache License 2.0
530 stars 474 forks source link

Example does not work out of the box #82

Closed pksilen closed 3 months ago

pksilen commented 7 months ago

The example does not work without adding CORS.

The following line is not correct: registry.addEndpoint("...");

It should be, e.g.: registry.addEndpoint("...").setAllowedOrigins("*")

robertmcnees commented 3 months ago

Hi @pksilen. Thanks for the issue. I see this as a duplicate of #79. Let's continue the discussion there. I'll close this issue as a duplicate.