summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-06-13 10:36:43 +0200
committerjbion <joffrey.bion@amadeus.com>2019-06-13 10:37:36 +0200
commitd3d0dc167cb30643f368ed3ffd527f5878fd2864 (patch)
tree0f711c873efc5f4aa0ad01fbb27a8efeaf03899c
parentFix module name in Heroku ProcFile (diff)
downloadseven-wonders-d3d0dc167cb30643f368ed3ffd527f5878fd2864.tar.gz
seven-wonders-d3d0dc167cb30643f368ed3ffd527f5878fd2864.tar.bz2
seven-wonders-d3d0dc167cb30643f368ed3ffd527f5878fd2864.zip
Allow any client to use the websocket API
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt2
1 files changed, 1 insertions, 1 deletions
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()
}
bgstack15