From d3d0dc167cb30643f368ed3ffd527f5878fd2864 Mon Sep 17 00:00:00 2001 From: jbion Date: Thu, 13 Jun 2019 10:36:43 +0200 Subject: Allow any client to use the websocket API --- .../src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt index 743e3d1a..b49d39cc 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt @@ -29,7 +29,7 @@ class WebSocketConfig @Autowired constructor(private val topicSubscriptionInterc override fun registerStompEndpoints(registry: StompEndpointRegistry) { registry.addEndpoint(SEVEN_WONDERS_WS_ENDPOINT) .setHandshakeHandler(handshakeHandler()) - .setAllowedOrigins("http://localhost:3000") // to allow frontend server proxy requests in dev mode + .setAllowedOrigins("*") // to allow any client to use the API .withSockJS() } -- cgit