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

Home Page:http://spring.io/guides/gs/messaging-stomp-websocket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example does not work out of the box

pksilen opened this issue · comments

The example does not work without adding CORS.

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

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